/* ============ 登录 / 注册 共用样式 ============ */
/* 外层布局 main.content 默认带内边距与截断高度, 登录/注册页占满整屏 */
main.content {
    padding: 0 !important;
    min-height: 100vh !important;
}
/* 隐藏外层布局自带的底部版权(页面内已含 auth-foot) */
body > .onezon-login-footer {
    display: none;
}

.user-auth {
    min-height: 100vh;
    background: linear-gradient(135deg, #d6e7ff 0%, #eaf2ff 50%, #f8fbff 100%);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 顶部导航条 */
.user-auth .auth-topbar {
    width: 100%;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    flex-shrink: 0;
}
.user-auth .auth-topbar-inner {
    max-width: 100%;
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.user-auth .auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}
.user-auth .auth-logo img {
    height: 50px;
    display: block;
}
.user-auth .auth-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #191919;
    margin-left: 8px;
}
.user-auth .auth-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.user-auth .auth-nav a {
    font-size: 14px;
    color: #595959;
    text-decoration: none !important;
    transition: color .15s ease;
}
.user-auth .auth-nav a:hover {
    color: #0055ff;
}

/* 主体(表单卡片居中) */
.user-auth .auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 40px;
}

/* 左右分屏 */
.user-auth .auth-wrap {
    display: flex;
    width: 100%;
    max-width: 1080px;
    min-height: 560px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 85, 255, .12);
    position: relative;
}

/* 左侧品牌区 */
.user-auth .auth-brand {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #0066ff 0%, #4a8bff 100%);
    color: #fff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.user-auth .brand-deco {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 260px;
}
.user-auth .brand-deco .brand-icon {
    font-size: 96px;
    color: rgba(255, 255, 255, .9);
    z-index: 2;
}
.user-auth .brand-deco::before,
.user-auth .brand-deco::after {
    content: "";
    position: absolute;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.08));
    box-shadow: 0 8px 24px rgba(0, 30, 80, .25);
}
.user-auth .brand-deco::before {
    width: 120px;
    height: 120px;
    top: 10%;
    left: -10px;
    transform: rotate(35deg);
    opacity: .55;
}
.user-auth .brand-deco::after {
    width: 80px;
    height: 80px;
    bottom: 12%;
    right: -10px;
    transform: rotate(-25deg);
    opacity: .35;
}
.user-auth .brand-text {
    margin-top: 24px;
}
.user-auth .brand-text .brand-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: .5px;
}
.user-auth .brand-text .brand-desc {
    font-size: 14px;
    margin: 0;
    opacity: .85;
    line-height: 1.6;
}

/* 右侧表单卡片 */
.user-auth .auth-form {
    flex: 1;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
}
.user-auth .auth-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.user-auth .auth-head .auth-title {
    font-size: 22px;
    font-weight: 600;
    color: #191919;
    margin: 0;
}
.user-auth .auth-switch {
    background: #0055ff;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none !important;
    line-height: 1.4;
    border: 0;
    cursor: pointer;
}
.user-auth .auth-switch:hover {
    background: #0042cc;
    color: #fff !important;
}

/* tab */
.user-auth .auth-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #f0f1f3;
    margin-bottom: 22px;
}
.user-auth .auth-tab {
    padding: 9px 0 11px;
    font-size: 15px;
    color: #595959;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
.user-auth .auth-tab.on {
    color: #0055ff;
    border-bottom-color: #0055ff;
    font-weight: 600;
}

/* 表单字段 */
.user-auth .form-field {
    margin-bottom: 14px;
}
.user-auth .form-field .form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fff;
    transition: border-color .15s ease;
    box-sizing: border-box;
}
.user-auth .form-field .form-input:focus {
    border-color: #0055ff;
}
.user-auth .form-field .form-input.err {
    border-color: #dc3545;
}

/* 行内小输入组 */
.user-auth .input-group {
    display: flex;
    width: 100%;
}
.user-auth .input-group .form-input {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}
.user-auth .input-group .input-group-btn {
    display: flex;
    align-items: stretch;
}
.user-auth .input-group .input-group-btn button,
.user-auth .input-group .input-group-btn .btn {
    border: 1px solid #e5e6eb;
    border-left: 0;
    background: #fafbfc;
    color: #0055ff;
    padding: 0 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 13px;
    height: 42px;
}
.user-auth .input-group .input-group-btn button:hover {
    color: #003fb8;
}

/* 短信/邮箱验证码控件(common/captcha 生成的 bootstrap form-control) 与卡片内联输入统一 */
/* 用 .auth-form 提高优先级, 覆盖 fastadmin/user.css 内嵌的 bootstrap 规则 */
.user-auth .auth-form .input-group {
    display: flex !important;
    width: 100%;
}
.user-auth .auth-form .input-group > .form-control {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    border: 1px solid #e5e6eb !important;
    border-right: 0 !important;
    border-radius: 6px 0 0 6px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    display: block !important;
}
.user-auth .auth-form .input-group .input-group-btn {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: auto !important;
}
.user-auth .auth-form .input-group .input-group-btn .btn-captcha {
    height: 42px !important;
    line-height: 42px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #e5e6eb !important;
    border-left: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    background: #fafbfc !important;
    color: #0055ff !important;
    font-size: 13px !important;
    display: inline-block !important;
}
.user-auth .auth-form .input-group .input-group-btn .btn-captcha:hover {
    color: #003fb8 !important;
    background: #eef3ff !important;
}

/* 记住密码 & 忘记密码 */
.user-auth .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #595959;
    margin-bottom: 18px;
}
.user-auth .form-actions .remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.user-auth .form-actions .remember input[type="checkbox"] {
    margin: 0;
}
.user-auth .form-actions .forgot {
    color: #0055ff;
    text-decoration: none;
}
.user-auth .form-actions .forgot:hover {
    text-decoration: underline;
}

/* 主按钮 */
.user-auth .btn-primary {
    width: 100%;
    height: 42px;
    background: #0055ff;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease;
}
.user-auth .btn-primary:hover {
    background: #0042cc;
}
.user-auth .btn-default {
    width: 100%;
    height: 42px;
    background: #f5f6f8;
    color: #595959;
    border: 1px solid #f0f1f3;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    line-height: 40px;
    text-decoration: none !important;
    display: block;
}
.user-auth .btn-default:hover {
    color: #0055ff;
    background: #fff;
    border-color: #0055ff;
}

/* 分隔 */
.user-auth .divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    font-size: 12px;
    color: #999;
}
.user-auth .divider-or::before,
.user-auth .divider-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f0f1f3;
}
.brand-deco {
    background-image: url("/template/onezon/css/img/zonkvm-logo.png");
    background-repeat: no-repeat;
    background-position: center center;
    width: 240px;
    height: 240px;
    background-size: contain;
    /* 块级元素水平居中 */
    margin: 0 auto;
}


/* 第三方登录 */
.user-auth .oauth-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}
.user-auth .oauth-list a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0055ff;
    border: 1px solid #e5e6eb;
    border-radius: 50%;
    background: #fafbfc;
    text-decoration: none !important;
    transition: all .2s ease;
}
.user-auth .oauth-list a:hover {
    color: #fff;
    background: #0055ff;
    border-color: #0055ff;
}

/* 表单底部 */
.user-auth .auth-foot {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.7;
}
.user-auth .auth-foot a {
    color: #999;
    text-decoration: none;
}
.user-auth .auth-foot a:hover {
    color: #0055ff;
}

/* tab 面板切换 */
.user-auth .auth-pane {
    display: none;
}
.user-auth .auth-pane.on {
    display: block;
}

/* 微信扫码占位 */
.user-auth .qrcode-box {
    width: 180px;
    height: 180px;
    margin: 12px auto;
    background: #f5f6f8;
    border: 1px solid #e5e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #c2c6cd;
    border-radius: 8px;
}
.user-auth .qrcode-tip {
    text-align: center;
    font-size: 13px;
    color: #737a87;
    margin-top: 8px;
}

/* 错误提示 */
.user-auth .help-block,
.user-auth .msg-box {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

/* 极验滑块容器 */
#captcha .geetest_captcha,
#captcha .geetest_holder {
    width: 100% !important;
}

/* 短信验证码行(输入框 + 发送按钮 紧凑同排) */
.user-auth .code-row {
    display: flex;
    gap: 10px;
}
.user-auth .code-row .code-input {
    flex: 1;
    min-width: 0;
}
.user-auth .code-btn {
    flex-shrink: 0;
    width: 118px;
    height: 42px;
    border: 1px solid #0055ff;
    background: #fff;
    color: #0055ff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s ease;
}
.user-auth .code-btn:hover {
    background: #f0f5ff;
}
/* 未通过人机验证前(极验)发送按钮不可点状态 */
.user-auth .code-btn.btn-mobile-captcha {
    border-color: #e5e6eb;
    color: #9aa0a8;
    background: #fafbfc;
    cursor: not-allowed;
}
.user-auth .code-btn.btn-mobile-captcha:hover {
    background: #fafbfc;
}
/* 发送倒计时禁用态 */
.user-auth .code-btn.disabled {
    border-color: #e5e6eb;
    color: #9aa0a8;
    background: #fafbfc;
    cursor: not-allowed;
}
.user-auth .code-btn.disabled:hover {
    background: #fafbfc;
}
/* 极验条(显示在短信验证码上方) */
.user-auth #captcha.auth-geetest {
    line-height: 0;
}
.user-auth #captcha.auth-geetest .geetest_holder,
.user-auth #captcha.auth-geetest .geetest_wind {
    width: 100% !important;
    margin: 0 !important;
}

/* 响应式 */
@media (max-width: 991px) {
    .user-auth .auth-brand {
        display: none;
    }
    .user-auth .auth-form {
        padding: 30px 22px;
    }
}
@media (max-width: 575px) {
    .user-auth {
        padding: 12px;
    }
    .user-auth .auth-form {
        padding: 24px 16px;
    }
    .user-auth .auth-head .auth-title {
        font-size: 18px;
    }
}