/* =========================================================================
   Auth Pro - 全新登录/注册 UI（覆盖 app.css 中的 .auth-* 旧样式）
   覆盖范围：管理员、教师、家长、统一登录、注册、忘记密码
   ========================================================================= */

/* ------------------------- Tokens & 全局背景 ------------------------- */

.auth-body {
    --apro-ink: #0f1535;
    --apro-ink-soft: #2c3457;
    --apro-muted: #6b7491;
    --apro-line: rgba(86, 102, 168, 0.16);
    --apro-soft: #f4f6fc;
    --apro-soft-2: #eef1fa;
    --apro-card: #ffffff;
    --apro-primary: #4f46e5;
    --apro-primary-2: #7c3aed;
    --apro-primary-soft: rgba(79, 70, 229, 0.12);
    --apro-primary-ink: #3730a3;
    --apro-accent: #14b8a6;
    --apro-warm: #f59e0b;
    --apro-danger: #e11d48;
    --apro-shadow-card: 0 30px 80px rgba(33, 42, 84, 0.18), 0 8px 24px rgba(33, 42, 84, 0.06);
    --apro-radius: 24px;
    --apro-input-radius: 14px;

    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: var(--apro-ink);
    background:
        radial-gradient(ellipse 60% 60% at 0% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(20, 184, 166, 0.22), transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(244, 114, 182, 0.18), transparent 60%),
        linear-gradient(180deg, #f5f7fc 0%, #eef1fa 100%);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.auth-body::before {
    top: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 70%);
}

.auth-body::after {
    bottom: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
}

.auth-body.has-login-image::before,
.auth-body.has-login-image::after {
    opacity: 0.2;
}

/* ------------------------- Stage / Shell ------------------------- */

.auth-body .auth-stage {
    position: relative;
    z-index: 1;
    width: min(1140px, 100%);
    margin: 0;
}

.auth-body .auth-shell {
    width: 100%;
    min-height: auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(var(--apro-card-width, 460px), calc(var(--apro-card-width, 460px) + 60px));
    gap: 0;
    padding: 0;
    border-radius: var(--apro-radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--apro-shadow-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow: hidden;
}

/* ------------------------- 左侧 Showcase ------------------------- */

.auth-body .auth-showcase {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.32), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #4f46e5 0%, #6d28d9 45%, #0f766e 110%);
    color: #f5f7fc;
}

.auth-body .auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.14), transparent 28%);
    pointer-events: none;
}

.auth-body .auth-showcase::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.5), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* 自定义背景图模式 —— 让上传图片填满整个左侧区域 */

.auth-body .auth-showcase.has-image {
    background-color: #11142a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-body .auth-showcase.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(15, 23, 42, calc(var(--apro-showcase-overlay, 0.35) * 1.1)) 0%,
            rgba(15, 23, 42, var(--apro-showcase-overlay, 0.35)) 35%,
            rgba(15, 23, 42, calc(var(--apro-showcase-overlay, 0.35) * 0.6)) 100%),
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.18), transparent 50%);
    pointer-events: none;
}

.auth-body .auth-showcase.has-image::after {
    display: none;
}

/* 当配置不显示装饰时，隐藏装饰元素 */

.auth-body.no-decorations .auth-showcase-art,
.auth-body.no-decorations .auth-showcase-board,
.auth-body.no-decorations .auth-art-badge,
.auth-body .auth-stage.no-decorations .auth-showcase-art,
.auth-body .auth-stage.no-decorations .auth-showcase-board,
.auth-body .auth-stage.no-decorations .auth-art-badge {
    display: none;
}

.auth-body.no-decorations .auth-showcase-inner,
.auth-body .auth-stage.no-decorations .auth-showcase-inner {
    grid-template-rows: auto 1fr auto;
}

/* 当有图片时，装饰区做半透明叠加，避免覆盖关键画面 */

.auth-body .auth-showcase.has-image .auth-showcase-art {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-body .auth-showcase.has-image .auth-showcase-art::before,
.auth-body .auth-showcase.has-image .auth-showcase-art-image {
    opacity: 0.4;
}

.auth-body .auth-showcase-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    padding: 36px 38px 34px;
    height: 100%;
}

/* 顶部品牌 */

.auth-body .auth-showcase-topline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-body .auth-showcase .brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

.auth-body .auth-showcase-brand {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.auth-body .auth-showcase-kicker {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-body .auth-showcase-brand strong {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* 中部装饰区域 */

.auth-body .auth-showcase-art {
    position: relative;
    align-self: stretch;
    min-height: 240px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.16), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-body .auth-showcase-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px),
        radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px),
        radial-gradient(circle at 30% 78%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 88%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px);
    background-size: 200px 200px;
    opacity: 0.45;
}

.auth-body .auth-showcase-art-image {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
        radial-gradient(circle at 78% 70%, rgba(20, 184, 166, 0.32), transparent 38%);
    background-color: transparent;
}

/* 中间装饰：浮动几何 */

.auth-body .auth-showcase-art::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: 28px;
    top: 38px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.18);
    transform: rotate(8deg);
    backdrop-filter: blur(8px);
}

.auth-body .auth-art-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--apro-ink);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.auth-body .auth-art-badge span {
    color: var(--apro-primary);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-body .auth-art-badge strong {
    color: var(--apro-ink);
    font-size: 0.96rem;
    font-weight: 800;
}

.auth-body .auth-art-badge--top {
    top: 26px;
    left: 24px;
}

.auth-body .auth-art-badge--bottom {
    right: 24px;
    bottom: 24px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(15, 118, 110, 0.95));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.auth-body .auth-art-badge--bottom span {
    color: rgba(255, 255, 255, 0.78);
}

.auth-body .auth-art-badge--bottom strong {
    color: #ffffff;
}

/* 大标题与副标 */

.auth-body .auth-showcase-copyblock {
    align-self: end;
    display: grid;
    gap: 12px;
    max-width: 460px;
    margin-top: 6px;
}

.auth-body .auth-showcase-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-body .auth-showcase-copyblock h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.auth-body .auth-showcase-copy {
    margin: 0;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.96rem;
    line-height: 1.85;
}

/* 底部 panel-board */

.auth-body .auth-showcase-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.auth-body .auth-showcase-panel-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    min-height: 78px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.auth-body .auth-showcase-panel-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-body .auth-showcase-panel-item strong {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* 底部快捷链接 */

.auth-body .auth-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.auth-body .auth-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.auth-body .auth-shortcuts a:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ------------------------- 右侧 Auth Card ------------------------- */

.auth-body .auth-card-shell {
    position: relative;
    display: grid;
    align-items: center;
    padding: 38px 40px;
    background: #ffffff;
    border-radius: 0;
}

.auth-body .auth-panel {
    width: min(var(--apro-card-width, 460px), 100%);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    display: grid;
    gap: 22px;
}

/* 顶部 logo + 标题 */

.auth-body .auth-panel-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
}

.auth-body .auth-panel-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.auth-body .auth-panel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.auth-body .auth-panel-logo span {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.auth-body .auth-panel-copy {
    min-width: 0;
}

.auth-body .auth-panel-copy span {
    display: block;
    color: var(--apro-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-body .auth-panel-copy h2 {
    margin: 4px 0 4px;
    color: var(--apro-ink);
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-body .auth-panel-copy p {
    margin: 0;
    color: var(--apro-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

/* form-intro（admin login/register 等单独页有自己的标题区） */

.auth-body .auth-form-intro {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--apro-soft);
    border: 1px solid var(--apro-line);
}

.auth-body .auth-form-intro .eyebrow {
    color: var(--apro-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-body .auth-form-intro h2 {
    color: var(--apro-ink);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
}

.auth-body .auth-form-intro p {
    color: var(--apro-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

/* ------------------------- 输入控件 ------------------------- */

.auth-body .auth-panel input,
.auth-body .auth-panel select,
.auth-body .auth-panel textarea,
.auth-body .auth-panel .auth-password-input {
    min-height: 50px;
    padding: 0 16px;
    border-radius: var(--apro-input-radius);
    background: var(--apro-soft);
    border: 1.5px solid transparent;
    color: var(--apro-ink);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-sizing: border-box;
}

.auth-body .auth-panel textarea {
    padding: 14px 16px;
    line-height: 1.6;
}

.auth-body .auth-panel input::placeholder,
.auth-body .auth-panel textarea::placeholder {
    color: #9ca7c5;
    font-weight: 500;
}

.auth-body .auth-panel input:hover,
.auth-body .auth-panel select:hover,
.auth-body .auth-panel textarea:hover {
    background: #ffffff;
    border-color: var(--apro-line);
}

.auth-body .auth-panel input:focus,
.auth-body .auth-panel select:focus,
.auth-body .auth-panel textarea:focus {
    background: #ffffff;
    border-color: var(--apro-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
    outline: none;
}

.auth-body .auth-panel label > span {
    margin-bottom: 8px;
    color: var(--apro-ink-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

/* 密码可见切换 */

.auth-body .auth-password-field {
    position: relative;
}

.auth-body .auth-password-field .auth-password-input {
    padding-right: 56px;
}

.auth-body .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border-radius: 10px;
    color: #6b7491;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-body .auth-password-toggle:hover,
.auth-body .auth-password-toggle:focus-visible {
    color: var(--apro-primary);
    background: rgba(79, 70, 229, 0.1);
    outline: none;
}

.auth-body .auth-password-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.auth-body .auth-password-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* 验证码 */

.auth-body .auth-captcha-row {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
}

.auth-body .auth-captcha-row--single-line {
    grid-template-columns: minmax(0, 1fr) 140px;
}

.auth-body .auth-captcha-image {
    width: 100%;
    height: 50px;
    border-radius: var(--apro-input-radius);
    border: 1.5px solid var(--apro-line);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.auth-body .auth-captcha-image:hover {
    border-color: var(--apro-primary);
    transform: translateY(-1px);
}

/* register grid */

.auth-body .auth-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-body .auth-register-grid-full {
    grid-column: 1 / -1;
}

.auth-body .auth-register-grid label > span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--apro-ink-soft);
    letter-spacing: 0.01em;
}

.auth-body .auth-register-grid select {
    width: 100%;
    min-height: 50px;
    padding: 0 40px 0 16px;
    border: 1.5px solid var(--apro-line);
    border-radius: var(--apro-input-radius);
    background: var(--apro-card);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    font-size: 0.92rem;
    color: var(--apro-ink);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7491' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-body .auth-register-grid select:hover {
    border-color: rgba(79, 70, 229, 0.35);
}

.auth-body .auth-register-grid select:focus {
    outline: none;
    border-color: var(--apro-primary);
    box-shadow: 0 0 0 4px var(--apro-primary-soft), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.auth-body .auth-register-grid select:invalid,
.auth-body .auth-register-grid select option[value=""] {
    color: var(--apro-muted);
}

/* tip */

.auth-body .auth-inline-tip,
.auth-body .auth-inline-tip--admin {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.16);
    color: var(--apro-primary-ink);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ------------------------- 主按钮 ------------------------- */

.auth-body .auth-panel .btn,
.auth-body .auth-panel .mini-btn {
    width: 100%;
    min-height: 52px;
    border-radius: var(--apro-input-radius);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-body .auth-panel .btn.primary,
.auth-body .auth-panel .mini-btn.is-primary {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 60%, #4f46e5 100%);
    color: #ffffff;
    border: 0;
    box-shadow: 0 18px 36px rgba(99, 102, 241, 0.32);
}

.auth-body .auth-panel .btn.primary:hover,
.auth-body .auth-panel .mini-btn.is-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 44px rgba(99, 102, 241, 0.4);
}

.auth-body .auth-panel .btn.tertiary,
.auth-body .auth-panel .mini-btn.is-secondary {
    background: var(--apro-soft);
    border: 1px solid var(--apro-line);
    color: var(--apro-ink-soft);
}

.auth-body .auth-panel .btn.tertiary:hover,
.auth-body .auth-panel .mini-btn.is-secondary:hover {
    background: var(--apro-primary-soft);
    border-color: rgba(79, 70, 229, 0.32);
    color: var(--apro-primary-ink);
    transform: translateY(-1px);
}

/* ------------------------- 表单链接 ------------------------- */

.auth-body .auth-form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid var(--apro-line);
    margin-top: 4px;
}

.auth-body .auth-form-links--inline {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    justify-content: space-between;
}

.auth-body .auth-form-links a {
    color: var(--apro-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.18s ease;
}

.auth-body .auth-form-links a:hover {
    color: var(--apro-primary-ink);
}

.auth-body .auth-entry-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px dashed var(--apro-line);
}

/* mini auth 按钮组 */

.auth-body .mini-auth-actions,
.auth-body .mini-parent-login-actions,
.auth-body .mini-parent-register-actions {
    gap: 10px;
}

.auth-body .mini-parent-login-actions--registers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* mini 标题 chip */

.auth-body .mini-chip {
    display: inline-flex;
    align-items: center;
    align-self: start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--apro-primary-soft);
    color: var(--apro-primary-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-body .mini-parent-login-form-panel {
    display: grid;
    gap: 18px;
}

.auth-body .mini-parent-login-form-panel h1 {
    margin: 0;
    color: var(--apro-ink);
    font-size: clamp(1.4rem, 1.9vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.auth-body .mini-parent-login-form-panel > p {
    margin: 0;
    color: var(--apro-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* alert */

.auth-body .alert {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--apro-line);
    background: var(--apro-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-body .alert.error {
    background: rgba(225, 29, 72, 0.08);
    border-color: rgba(225, 29, 72, 0.22);
    color: #b91c4d;
}

.auth-body .alert.success {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.24);
    color: #0f6e62;
}

/* flash 消息 */

.auth-body .flash {
    margin: 0 0 12px;
}

.auth-body .flash + .flash {
    margin-top: 4px;
}

/* ------------------------- 管理员特化样式 ------------------------- */

.auth-body.admin-auth-page {
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 56px);
    background:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.18), transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12), transparent 36%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(124, 58, 237, 0.18), transparent 60%),
        linear-gradient(180deg, #f6f7fc 0%, #eceffa 100%);
}

.auth-body.admin-auth-page::before,
.auth-body.admin-auth-page::after {
    opacity: 0.32;
}

.auth-body.admin-auth-page::before {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
}

.auth-body.admin-auth-page::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4), transparent 70%);
}

.auth-body.admin-auth-page .auth-stage {
    width: min(1100px, 100%);
    min-height: 0;
    margin: 0;
    animation: apro-stage-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes apro-stage-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-body.admin-auth-page .auth-shell {
    min-height: auto;
    grid-template-columns: minmax(0, 1.08fr) minmax(var(--apro-card-width, 460px), calc(var(--apro-card-width, 460px) + 60px));
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 40px 100px rgba(33, 42, 84, 0.18),
        0 12px 32px rgba(33, 42, 84, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 0;
    justify-content: stretch;
    align-items: stretch;
    overflow: hidden;
}

.auth-body.admin-auth-page .auth-showcase,
.auth-body.admin-auth-page .auth-card-shell {
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.auth-body.admin-auth-page .auth-showcase {
    display: grid;
    isolation: isolate;
}

.auth-body.admin-auth-page .auth-showcase-inner {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 36px 36px 32px;
    gap: 18px;
    grid-template-rows: auto 1fr auto auto;
    align-content: stretch;
}

/* admin 模式：隐藏左下角的快捷链接，避免内容超出右侧表单高度 */
.auth-body.admin-auth-page .auth-shortcuts {
    display: none;
}

.auth-body.admin-auth-page .auth-panel {
    width: min(var(--apro-card-width, 460px), 100%);
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

/* 左侧 Showcase —— 干净浅底 + 深色文字 */

.auth-body.admin-auth-page .auth-showcase {
    background: linear-gradient(180deg, #f8f9ff 0%, #eef1fa 100%);
}

.auth-body.admin-auth-page .auth-showcase::before {
    background: none;
}

.auth-body.admin-auth-page .auth-showcase::after {
    display: none;
}

.auth-body.admin-auth-page .auth-showcase-inner {
    padding: 44px 44px 38px;
}

.auth-body.admin-auth-page .auth-showcase-topline {
    margin-bottom: 4px;
}

.auth-body.admin-auth-page .auth-showcase .brand-badge {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    border: 1px solid rgba(124, 58, 237, 0.32);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(76, 29, 149, 0.28);
}

.auth-body.admin-auth-page .auth-showcase-kicker {
    color: #6d28d9;
}

.auth-body.admin-auth-page .auth-showcase-brand strong {
    color: #1e1b4b;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

/* 中部艺术区：紫粉浅色玻璃 */

.auth-body.admin-auth-page .auth-showcase-art {
    position: relative;
    inset: auto;
    min-height: 200px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.1), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.12), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 241, 250, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.16);
    overflow: hidden;
}

.auth-body.admin-auth-page .auth-showcase-art::before {
    background-image:
        radial-gradient(circle at 14% 22%, rgba(124, 58, 237, 0.42) 0 1.5px, transparent 1.5px),
        radial-gradient(circle at 80% 36%, rgba(99, 102, 241, 0.32) 0 1px, transparent 1px),
        radial-gradient(circle at 30% 78%, rgba(99, 102, 241, 0.32) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 86%, rgba(124, 58, 237, 0.4) 0 1.5px, transparent 1.5px);
    background-size: 240px 240px;
    opacity: 0.7;
}

.auth-body.admin-auth-page .auth-showcase-art::after {
    width: 180px;
    height: 180px;
    right: 20px;
    top: 26px;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.32);
    box-shadow: 0 24px 40px rgba(76, 29, 149, 0.12);
    transform: rotate(8deg);
    backdrop-filter: blur(8px);
}

.auth-body.admin-auth-page .auth-showcase-art-image {
    position: absolute;
    inset: 0;
    background: none;
    background-color: transparent;
    background-image:
        linear-gradient(120deg, transparent 35%, rgba(124, 58, 237, 0.08) 50%, transparent 65%) !important;
}

/* 浮动小卡 */

.auth-body.admin-auth-page .auth-art-badge {
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 18px 36px rgba(76, 29, 149, 0.16);
    border-radius: 14px;
}

.auth-body.admin-auth-page .auth-art-badge--top {
    top: 24px;
    left: 24px;
    padding: 12px 16px;
}

.auth-body.admin-auth-page .auth-art-badge--top span {
    color: #6d28d9;
}

.auth-body.admin-auth-page .auth-art-badge--top strong {
    color: #1e1b4b;
}

.auth-body.admin-auth-page .auth-art-badge--bottom {
    right: 24px;
    bottom: 24px;
    padding: 12px 16px;
    background: #ffffff;
    color: #1e1b4b;
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 18px 36px rgba(76, 29, 149, 0.16);
}

.auth-body.admin-auth-page .auth-art-badge--bottom span {
    color: #6d28d9;
}

.auth-body.admin-auth-page .auth-art-badge--bottom strong {
    color: #1e1b4b;
}

/* 大标题区 */

.auth-body.admin-auth-page .auth-showcase-copyblock {
    max-width: 480px;
    gap: 14px;
    margin-top: 6px;
}

.auth-body.admin-auth-page .auth-showcase-label {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.24);
    color: #6d28d9;
    padding: 6px 14px;
    font-weight: 800;
}

.auth-body.admin-auth-page .auth-showcase-copyblock h1 {
    font-size: clamp(2.1rem, 2.8vw, 2.8rem);
    line-height: 1.14;
    color: #1e1b4b;
    text-wrap: balance;
}

.auth-body.admin-auth-page .auth-showcase-copy {
    color: #4a5276;
    font-size: 0.96rem;
    line-height: 1.85;
    max-width: 440px;
}

/* 底部 stat 板 */

.auth-body.admin-auth-page .auth-showcase-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.auth-body.admin-auth-page .auth-showcase-panel-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 58, 237, 0.14);
    backdrop-filter: blur(10px);
    min-height: 76px;
}

.auth-body.admin-auth-page .auth-showcase-panel-item span {
    color: #6d28d9;
}

.auth-body.admin-auth-page .auth-showcase-panel-item strong {
    color: #1e1b4b;
}

/* 快捷链接 */

.auth-body.admin-auth-page .auth-shortcuts {
    margin-top: 12px;
}

.auth-body.admin-auth-page .auth-shortcuts a {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #4338ca;
}

.auth-body.admin-auth-page .auth-shortcuts a:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.36);
    color: #4c1d95;
}

/* ------------------------- 右侧表单卡 ------------------------- */

.auth-body.admin-auth-page .auth-card-shell {
    padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 44px);
    background: #ffffff;
}

.auth-body.admin-auth-page .auth-panel-top {
    align-items: center;
    gap: 14px;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--apro-line);
    padding-bottom: 18px;
}

.auth-body.admin-auth-page .auth-panel-logo {
    background: linear-gradient(135deg, #4338ca, #7c3aed 60%, #f59e0b 130%);
    box-shadow: 0 14px 30px rgba(76, 29, 149, 0.32);
    border-radius: 16px;
}

.auth-body.admin-auth-page .auth-panel-copy span {
    color: #6d28d9;
}

.auth-body.admin-auth-page .auth-panel-copy h2 {
    color: #1e1b4b;
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.auth-body.admin-auth-page .auth-panel-copy p {
    color: #6b7491;
}

/* form intro 升级 */

.auth-body.admin-auth-page .auth-form-intro {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(245, 158, 11, 0.06));
    border-color: rgba(124, 58, 237, 0.18);
    padding: 16px 18px;
    border-radius: 14px;
}

.auth-body.admin-auth-page .auth-form-intro .eyebrow {
    color: #6d28d9;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}

.auth-body.admin-auth-page .auth-form-intro h2 {
    color: #1e1b4b;
    font-size: 1.18rem;
    line-height: 1.3;
}

.auth-body.admin-auth-page .auth-form-intro p {
    color: #6b7491;
    font-size: 0.86rem;
    line-height: 1.7;
}

/* 输入控件升级：聚焦时带紫光 */

.auth-body.admin-auth-page .auth-panel input,
.auth-body.admin-auth-page .auth-panel select,
.auth-body.admin-auth-page .auth-panel textarea,
.auth-body.admin-auth-page .auth-panel .auth-password-input {
    min-height: 52px;
    border-radius: 14px;
    background: #f6f7fc;
    border: 1.5px solid transparent;
    color: #1e1b4b;
    font-weight: 600;
}

.auth-body.admin-auth-page .auth-panel input:hover,
.auth-body.admin-auth-page .auth-panel select:hover {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.18);
}

.auth-body.admin-auth-page .auth-panel input:focus,
.auth-body.admin-auth-page .auth-panel select:focus,
.auth-body.admin-auth-page .auth-panel textarea:focus {
    background: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16);
}

.auth-body.admin-auth-page .auth-panel label > span {
    color: #2c3457;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
}

/* 验证码图特化 */

.auth-body.admin-auth-page .auth-captcha-image {
    border: 1.5px solid rgba(124, 58, 237, 0.16);
    border-radius: 14px;
    height: 52px;
}

.auth-body.admin-auth-page .auth-captcha-image:hover {
    border-color: #7c3aed;
}

/* 密码可见切换 */

.auth-body.admin-auth-page .auth-password-toggle {
    color: #94a0c0;
}

.auth-body.admin-auth-page .auth-password-toggle:hover {
    color: #6d28d9;
    background: rgba(124, 58, 237, 0.1);
}

/* 主按钮：紫到金的渐变 */

.auth-body.admin-auth-page .auth-panel .btn.primary {
    min-height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #f59e0b 130%);
    box-shadow: 0 18px 36px rgba(76, 29, 149, 0.32);
    font-weight: 800;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.auth-body.admin-auth-page .auth-panel .btn.primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.auth-body.admin-auth-page .auth-panel .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 44px rgba(76, 29, 149, 0.42);
}

.auth-body.admin-auth-page .auth-panel .btn.primary:hover::before {
    transform: translateX(100%);
}

/* tip / 链接行 */

.auth-body.admin-auth-page .auth-inline-tip,
.auth-body.admin-auth-page .auth-inline-tip--admin {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(245, 158, 11, 0.06));
    border-color: rgba(124, 58, 237, 0.18);
    color: #4c1d95;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.6;
}

.auth-body.admin-auth-page .auth-form-links {
    border-top: 1px dashed var(--apro-line);
    padding-top: 14px;
    margin-top: 6px;
    gap: 8px 16px;
}

.auth-body.admin-auth-page .auth-form-links a {
    color: #6b7491;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.18s ease, transform 0.18s ease;
}

.auth-body.admin-auth-page .auth-form-links a:hover {
    color: #6d28d9;
    transform: translateY(-1px);
}

/* 让 admin 表单在 panel-top 右侧加一个 "在线状态" 徽章 */

.auth-body.admin-auth-page .auth-panel-top::after {
    content: "Secure";
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0.06));
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid rgba(20, 184, 166, 0.32);
}

/* ------------------------- 教师 / 家长 / 统一登录 共用 (auth-body 默认即可) ------------------------- */

/* 移动端 / 平板 */

@media (max-width: 1080px) {
    .auth-body {
        padding: 18px;
        align-items: flex-start;
    }

    .auth-body .auth-shell,
    .auth-body.admin-auth-page .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 22px;
    }

    .auth-body .auth-showcase,
    .auth-body.admin-auth-page .auth-showcase {
        min-height: 320px;
    }

    .auth-body .auth-showcase-inner {
        padding: 28px 28px 26px;
    }

    .auth-body .auth-showcase-art {
        min-height: 200px;
    }

    .auth-body .auth-card-shell {
        padding: 30px 28px 34px;
    }
}

@media (max-width: 640px) {
    .auth-body {
        padding: 12px;
    }

    .auth-body .auth-shell,
    .auth-body.admin-auth-page .auth-shell {
        border-radius: 18px;
    }

    .auth-body .auth-showcase-inner {
        padding: 24px 22px;
        gap: 16px;
    }

    .auth-body .auth-showcase-copyblock h1 {
        font-size: 1.7rem;
    }

    .auth-body .auth-showcase-board {
        grid-template-columns: 1fr;
    }

    .auth-body .auth-card-shell {
        padding: 26px 20px 30px;
    }

    .auth-body .auth-register-grid {
        grid-template-columns: 1fr;
    }

    .auth-body .auth-entry-buttons {
        grid-template-columns: 1fr;
    }

    .auth-body .auth-captcha-row {
        grid-template-columns: 1fr;
    }

    .auth-body .auth-captcha-image {
        width: 100%;
    }

    .auth-body .auth-form-links {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .auth-body .auth-art-badge--top {
        top: 18px;
        left: 16px;
        padding: 8px 12px;
    }

    .auth-body .auth-art-badge--bottom {
        right: 16px;
        bottom: 16px;
        padding: 8px 12px;
    }
}
