/* =========================================================
   招生话术智能质检与优化分析系统 · 认证页样式
   ========================================================= */
:root {
    --ink: #0a1f1c;
    --ink-2: #12332d;
    --jade: #14524a;
    --jade-2: #1d6b5d;
    --jade-3: #2b8a76;
    --gold: #c79544;
    --gold-2: #e0b972;
    --paper: #f5f3ee;
    --paper-2: #efece4;
    --line: #e2ddd2;
    --text: #1c211f;
    --muted: #7a817d;
    --danger: #b4433c;
    --shadow-lg: 0 32px 80px rgba(6, 26, 22, .32);
    --shadow-sm: 0 6px 18px rgba(6, 26, 22, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body.auth-body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", -apple-system, sans-serif;
    background: var(--ink);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.auth-stage {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 100vh;
    position: relative;
}

/* ---------- 左侧品牌视觉 ---------- */
.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 42px 56px 34px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 90% at 8% 0%, #1c5a50 0%, rgba(20, 82, 74, 0) 52%),
        radial-gradient(90% 80% at 92% 100%, #0f3f38 0%, rgba(15, 63, 56, 0) 55%),
        linear-gradient(150deg, #0a1f1c 0%, #0d2a25 48%, #08201c 100%);
    color: #eef4f0;
}

.visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 80% at 40% 40%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 40% 40%, #000 25%, transparent 78%);
}

.visual-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    right: -220px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 149, 68, .18) 0%, rgba(199, 149, 68, 0) 62%);
    filter: blur(8px);
    pointer-events: none;
}

.visual-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.brand-row { display: flex; align-items: center; gap: 14px; }

.brand-mark {
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--gold-2), var(--gold));
    color: #211708;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .5px;
    box-shadow: 0 8px 22px rgba(199, 149, 68, .34), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.brand-row b { display: block; font-size: 16px; letter-spacing: 2.5px; font-weight: 600; }
.brand-row span { display: block; font-size: 10px; letter-spacing: 1.6px; color: rgba(238, 244, 240, .5); margin-top: 4px; }

.version-pill {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: rgba(238, 244, 240, .66);
    border: 1px solid rgba(238, 244, 240, .2);
    border-radius: 999px;
    padding: 5px 12px;
    backdrop-filter: blur(4px);
}

.visual-main {
    position: relative;
    z-index: 2;
    margin: auto 0;
    padding: 30px 0;
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    letter-spacing: 1.2px;
    color: var(--gold-2);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(199, 149, 68, .28);
    background: rgba(199, 149, 68, .08);
    margin-bottom: 26px;
}

.eyebrow .pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-2);
    box-shadow: 0 0 0 0 rgba(224, 185, 114, .6);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 185, 114, .55); }
    70% { box-shadow: 0 0 0 9px rgba(224, 185, 114, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 185, 114, 0); }
}

.visual-main h1 {
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: 1px;
    color: #f3f8f5;
}

.visual-main h1 em {
    font-style: normal;
    color: var(--gold-2);
    position: relative;
}

.visual-main h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, rgba(224, 185, 114, .8), rgba(224, 185, 114, 0));
}

.lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.95;
    color: rgba(238, 244, 240, .62);
    max-width: 520px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.cap {
    border: 1px solid rgba(238, 244, 240, .1);
    background: linear-gradient(160deg, rgba(238, 244, 240, .055), rgba(238, 244, 240, .015));
    border-radius: 12px;
    padding: 15px 16px 14px;
    transition: .28s ease;
    backdrop-filter: blur(6px);
}

.cap:hover {
    border-color: rgba(199, 149, 68, .34);
    transform: translateY(-2px);
    background: linear-gradient(160deg, rgba(199, 149, 68, .1), rgba(238, 244, 240, .02));
}

.cap i { font-size: 19px; color: var(--gold-2); }
.cap b { display: block; margin-top: 9px; font-size: 13.5px; font-weight: 600; color: #eef4f0; }
.cap span { display: block; margin-top: 5px; font-size: 11.5px; color: rgba(238, 244, 240, .46); letter-spacing: .2px; }

.step-list { margin-top: 38px; display: flex; flex-direction: column; gap: 0; }

.step {
    display: flex;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid rgba(238, 244, 240, .08);
}
.step:last-child { border-bottom: 1px solid rgba(238, 244, 240, .08); }
.step-no {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gold-2);
    border: 1px solid rgba(199, 149, 68, .3);
    border-radius: 6px;
    width: 34px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
}
.step b { display: block; font-size: 13.5px; color: #eef4f0; font-weight: 500; }
.step span { display: block; font-size: 12px; color: rgba(238, 244, 240, .45); margin-top: 4px; }

.visual-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: rgba(238, 244, 240, .34);
    letter-spacing: .3px;
}
.visual-foot .dot { opacity: .5; }

/* ---------- 右侧表单 ---------- */
.auth-panel {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    position: relative;
    overflow-y: auto;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(20, 82, 74, .055) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, #000, transparent 55%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid rgba(20, 82, 74, .08);
    border-radius: 18px;
    padding: 36px 34px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    animation: cardIn .55s cubic-bezier(.2, .8, .25, 1) both;
}

.auth-panel.wide .auth-card { max-width: 620px; padding: 32px 36px 28px; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.auth-head { text-align: center; margin-bottom: 26px; }

.auth-badge {
    width: 50px; height: 50px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, rgba(20, 82, 74, .12), rgba(20, 82, 74, .04));
    border: 1px solid rgba(20, 82, 74, .14);
    color: var(--jade-2);
    font-size: 23px;
    box-shadow: inset 0 1px 0 #fff;
}

.auth-head h2 { font-size: 23px; font-weight: 600; letter-spacing: .5px; color: var(--ink); }
.auth-head p { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.field-group { margin-bottom: 16px; }
.field-group label {
    display: block;
    font-size: 12px;
    color: #5c635f;
    letter-spacing: .4px;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f7f3;
    border: 1px solid var(--line);
    border-radius: 10px;
    height: 46px;
    transition: .22s ease;
}

.input-wrap:focus-within {
    border-color: var(--jade-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 107, 93, .09);
}

.input-wrap > i {
    width: 44px;
    text-align: center;
    font-size: 16px;
    color: #9aa19d;
    flex: none;
}

.input-wrap input,
.input-wrap select {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    color: var(--text);
    font-family: inherit;
    padding-right: 12px;
}

.input-wrap select { cursor: pointer; appearance: none; }
.input-wrap input::placeholder { color: #b3b8b4; }

.input-wrap .eye {
    border: 0;
    background: none;
    color: #9aa19d;
    width: 42px; height: 100%;
    cursor: pointer;
    font-size: 15px;
}
.input-wrap .eye:hover { color: var(--jade-2); }

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 16px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #6d7470;
    cursor: pointer;
    user-select: none;
}
.check input { accent-color: var(--jade-2); width: 14px; height: 14px; }
.check.agree { margin: 6px 0 18px; }

.link { font-size: 12px; color: var(--jade-2); text-decoration: none; }
.link:hover { text-decoration: underline; }

.form-error {
    display: none;
    background: #fdf3f2;
    border: 1px solid #f2d6d3;
    color: var(--danger);
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.form-error.show { display: block; }

.btn-primary {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #1c6b5d, #0f453e);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 12px 26px rgba(15, 69, 62, .26);
    transition: .24s ease;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(15, 69, 62, .32); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .78; cursor: default; transform: none; }

.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fbfaf7;
    color: #3d4844;
    font-size: 13px;
    text-decoration: none;
    transition: .2s ease;
}
.btn-ghost:hover { border-color: #c9c2b3; background: #fff; }

.auth-sep {
    position: relative;
    text-align: center;
    margin: 20px 0 14px;
}
.auth-sep::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: #eeece6;
}
.auth-sep span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 11.5px;
    color: #9aa19d;
}

.auth-tips {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #eae6dc;
    font-size: 11px;
    line-height: 1.7;
    color: #9aa19d;
}
.auth-tips i { font-size: 14px; color: #b0a68c; flex: none; margin-top: 1px; }

.auth-foot {
    margin-top: 22px;
    font-size: 11px;
    color: #9c9f98;
    letter-spacing: .4px;
    position: relative;
    z-index: 2;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.spinner {
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(20, 82, 74, .18);
    border-top-color: var(--jade-2);
    display: inline-block;
    animation: spin .7s linear infinite;
}
.spinner.light { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
    .auth-stage { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { padding: 32px 20px; background: linear-gradient(160deg, #0d2a25, #0a1f1c); }
    .auth-panel::before { display: none; }
    .auth-card { max-width: 430px; }
    .auth-foot { color: rgba(238, 244, 240, .4); }
}

@media (max-width: 620px) {
    .grid-2 { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
    .auth-panel.wide .auth-card { padding: 26px 20px; }
}
