@charset "utf-8";
/* 登录 / 注册 */

body.auth-body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}
.auth-page { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }

/* 左侧品牌区 */
.auth-art {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 32px 44px 30px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(9, 30, 55, .96) 0%, rgba(23, 69, 122, .93) 55%, rgba(31, 95, 168, .9) 100%),
        url("../images/login-hero.jpg?v=1.0.0") center 45% / cover no-repeat;
}
.auth-art::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}
.art-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.art-brand-seal {
    width: 40px; height: 40px; border-radius: 8px; flex: none;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    display: grid; place-items: center;
    font-size: 19px; font-weight: 700; color: #fff;
}
.art-brand-name { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.art-brand-sub { font-size: 10px; color: rgba(255, 255, 255, .62); margin-top: 2px; }

.art-middle { position: relative; z-index: 1; display: flex; align-items: center; }
.art-copy { max-width: 500px; }
.art-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; color: rgba(191, 219, 254, .85); }
.art-kicker::before { content: ""; width: 20px; height: 1px; background: rgba(191, 219, 254, .7); }
.art-title { font-size: 34px; font-weight: 600; line-height: 1.4; margin-top: 14px; color: #fff; }
.art-title em { font-style: normal; color: #bfdbfe; }
.art-desc { font-size: 13px; line-height: 1.9; color: rgba(219, 234, 254, .72); margin-top: 12px; max-width: 430px; }
.art-stats { display: flex; gap: 32px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.art-stat .as-v { font-size: 23px; font-weight: 600; color: #fff; }
.art-stat .as-v small { font-size: 10px; color: rgba(219, 234, 254, .55); margin-left: 3px; font-weight: 400; }
.art-stat .as-l { font-size: 10.5px; color: rgba(219, 234, 254, .55); margin-top: 2px; }
.art-features { display: flex; flex-direction: column; gap: 9px; margin-top: 24px; }
.art-feature { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(219, 234, 254, .8); }
.art-feature i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #bfdbfe; font-size: 8px; flex: none; }

.art-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10.5px; color: rgba(219, 234, 254, .5); }
.art-foot .af-sep { display: inline-flex; align-items: center; gap: 7px; }
.art-foot .af-sep::before { content: ""; width: 3px; height: 10px; background: #bfdbfe; border-radius: 2px; opacity: .8; }

/* 右侧表单区 */
.auth-panel {
    display: flex; flex-direction: column; justify-content: center;
    padding: 36px 48px;
    background: var(--bg);
}
.auth-inner {
    width: 100%; max-width: 400px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 30px 24px;
    box-shadow: var(--shadow-sm);
}
.auth-inner.wide { max-width: 520px; }
.auth-head { margin-bottom: 22px; }
.auth-brandline { font-size: 10.5px; letter-spacing: .12em; color: var(--brand-600); margin-bottom: 12px; }
.auth-head h1 { font-size: 25px; font-weight: 600; color: var(--text); line-height: 1.35; }
.auth-head p { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.auth-seal-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 10.5px; color: var(--brand-600); background: var(--brand-50); border: 1px solid #dbeafe; border-radius: 4px; padding: 3px 7px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.auth-input { position: relative; }
.auth-input > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--faint); transition: .15s; }
.auth-input .input {
    height: 42px; padding-left: 37px; border-radius: 6px;
    background: var(--surface);
    border-color: var(--border-strong);
    font-size: 13.5px;
}
.auth-input .input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(31, 95, 168, .1); }
.auth-input:focus-within > i { color: var(--brand-600); }
.auth-input .toggle-pwd { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 4px; color: var(--faint); font-size: 12px; }
.auth-input .toggle-pwd:hover { color: var(--text); background: var(--surface-3); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.auth-submit { height: 44px; border-radius: 6px; font-size: 14px; margin-top: 2px; }
.auth-error {
    display: none; align-items: flex-start; gap: 8px;
    padding: 9px 11px; border-radius: 6px;
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    color: var(--danger); font-size: 12px; line-height: 1.55;
    margin-bottom: 12px;
}
.auth-error.show { display: flex; }
.auth-error i { margin-top: 2px; }

.auth-switch { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--brand-600); }
.auth-switch a:hover { text-decoration: underline; }
.auth-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--faint); }

.auth-form .form-grid { gap: 12px 14px; }
.auth-form .field > label { font-size: 12.5px; margin-bottom: 6px; }
.auth-form .input { height: 42px; }
.auth-form .auth-input .input { padding-left: 36px; font-size: 13px; }
.auth-form .auth-input > i { left: 12px; font-size: 12px; }

@media (max-width: 1080px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel { min-height: 100vh; padding: 30px 20px; }
}
@media (max-width: 560px) {
    .auth-inner { padding: 24px 20px 20px; }
    .auth-form .form-grid { grid-template-columns: 1fr; }
    .auth-form .form-grid .span-2 { grid-column: span 1; }
    .auth-head h1 { font-size: 22px; }
}
