/* ==========================================================================
   auth.css - ConferenceShow 前台英文认证页统一样式 (register / loginEn / forgot)
   版本: v=20260911b  (b: 品牌升级 APHA —— .auth-brand-mark 改白底容器内嵌 logo 图片,
                        品牌名/APHA Conference System 加宽字号适配)
   风格: 延续 site.css 设计令牌 (主色 #2A7AE5 / 文字 #1a2b45 / 600px 移动容器),
         深蓝品牌渐变背景 + 白卡浮层, 大厂 H5 认证页标准
   兼容: IE11+Chrome+Safari (无 CSS 变量 / Grid)
   自包含: 不依赖 site.css (含 .toast 样式, 认证页用内联错误提示, 不用 toast)
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #0e1f38;
    color: #1a2b45;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------- 页面骨架 ----------------------------- */
.auth-page {
    min-height: 100%;
    background:
        radial-gradient(ellipse 120% 60% at 85% -10%, rgba(42,122,229,0.35) 0%, rgba(42,122,229,0) 60%),
        radial-gradient(ellipse 90% 50% at 0% 110%, rgba(19,168,168,0.18) 0%, rgba(19,168,168,0) 55%),
        linear-gradient(165deg, #0e1f38 0%, #14304f 52%, #1a5fb4 130%);
    padding: 40px 20px 36px;
}
.auth-shell { max-width: 420px; margin: 0 auto; }

/* ----------------------------- 品牌区 ----------------------------- */
.auth-brand { text-align: center; color: #fff; margin-bottom: 24px; }
.auth-brand-mark {
    width: 64px; height: 64px; margin: 0 auto 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(42,122,229,0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
}
/* APHA logo 图 (白底容器内嵌, 避免透明 PNG 在深色渐变上不可见) */
.auth-brand-mark img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.auth-brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap; }
.auth-brand-tagline { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 4px; letter-spacing: 0.3px; }

/* ----------------------------- 卡片 ----------------------------- */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 26px 26px;
    box-shadow: 0 18px 50px rgba(4,18,40,0.45);
}
.auth-title { font-size: 21px; font-weight: 700; color: #12263f; letter-spacing: 0.2px; }
.auth-sub { font-size: 13.5px; color: #7d8ca3; margin-top: 6px; line-height: 1.6; }
.auth-head { margin-bottom: 22px; }

/* ----------------------------- 表单 ----------------------------- */
.auth-field { margin-bottom: 16px; }
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #44546a;
    margin-bottom: 6px;
}
.auth-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #dde5ef;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #1a2b45;
    outline: none;
    background: #fbfcfe;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-input::placeholder { color: #a8b4c6; }
.auth-input:focus { border-color: #2A7AE5; background: #fff; box-shadow: 0 0 0 3px rgba(42,122,229,0.15); }
.auth-field.err .auth-input { border-color: #e5484d; background: #fffafa; }
.auth-err { display: none; font-size: 12px; color: #e5484d; margin-top: 5px; line-height: 1.5; }
.auth-field.err .auth-err { display: block; }

/* 密码框 + 可见切换 */
.auth-pwd-wrap { position: relative; }
.auth-pwd-wrap .auth-input { padding-right: 46px; }
.auth-pwd-toggle {
    position: absolute; right: 4px; top: 4px;
    width: 38px; height: 38px;
    border: none; background: none; cursor: pointer;
    color: #9aa8b8; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.auth-pwd-toggle:hover { color: #2A7AE5; background: #f0f6ff; }
.auth-pwd-toggle svg { width: 19px; height: 19px; }

/* 验证码行 */
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .auth-input { flex: 1; min-width: 0; letter-spacing: 3px; }
.auth-code-btn {
    flex-shrink: 0;
    width: 118px;
    height: 46px;
    border: 1.5px solid #2A7AE5;
    background: #f0f6ff;
    color: #2A7AE5;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, opacity 0.15s;
}
.auth-code-btn:hover { background: #e3eefc; }
.auth-code-btn:disabled { border-color: #c8d4e4; color: #9aa8b8; background: #f5f7fa; cursor: not-allowed; }

/* ----------------------------- 提交按钮 ----------------------------- */
.auth-submit {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b8bff, #1b5fc4);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(42,122,229,0.35);
    transition: opacity 0.15s, box-shadow 0.15s;
}
.auth-submit:hover { opacity: 0.94; }
.auth-submit:active { opacity: 0.88; box-shadow: 0 4px 12px rgba(42,122,229,0.3); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* 表单级错误 / 成功提示 */
.auth-alert { display: none; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.auth-alert.error { background: #fff2f3; border: 1px solid #ffd6d8; color: #d93843; }
.auth-alert.success { background: #f0fff4; border: 1px solid #c3f0cf; color: #2f9e5b; }
.auth-alert.show { display: block; }

/* ----------------------------- 底部链接区 ----------------------------- */
.auth-alt { text-align: center; font-size: 13.5px; color: #7d8ca3; margin-top: 20px; }
.auth-alt a { color: #2A7AE5; font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-links { text-align: center; margin-top: 14px; font-size: 13px; }
.auth-links a { color: #7d8ca3; text-decoration: none; }
.auth-links a:hover { color: #2A7AE5; }

.auth-foot { text-align: center; margin-top: 26px; font-size: 12px; color: rgba(255,255,255,0.45); }

/* ----------------------------- 步骤指示 (forgot) ----------------------------- */
.auth-steps { display: flex; align-items: center; margin: 18px 0 24px; }
.auth-step { display: flex; align-items: center; flex: 1; }
.auth-step:last-child { flex: 0 0 auto; }
.auth-step-dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: #e8eef6; color: #9aa8b8;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.auth-step-label { font-size: 11.5px; color: #9aa8b8; margin-left: 6px; white-space: nowrap; }
.auth-step-line { flex: 1; height: 2px; background: #e8eef6; margin: 0 10px; border-radius: 1px; }
.auth-step.active .auth-step-dot { background: #2A7AE5; color: #fff; box-shadow: 0 3px 8px rgba(42,122,229,0.35); }
.auth-step.active .auth-step-label { color: #2A7AE5; font-weight: 600; }
.auth-step.done .auth-step-dot { background: #52c41a; color: #fff; }
.auth-step.done .auth-step-line { background: #52c41a; }

/* toast (common.js showToast 兜底样式, 认证页少量场景使用) */
.toast {
    position: fixed; left: 50%; bottom: 12%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(14,31,56,0.92); color: #fff;
    padding: 10px 20px; border-radius: 8px;
    font-size: 14px; max-width: 86%;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2000; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(47,158,91,0.95); }
.toast.error { background: rgba(217,56,67,0.95); }
