:root {
    --primary: #0f6cbd;
    --primary-strong: #0b4f8a;
    --accent: #f28c28;
    --accent-soft: #fff1df;
    --success: #1f9d72;
    --danger: #d64545;
    --text: #17324d;
    --text-muted: #60758a;
    --border: rgba(23, 50, 77, 0.12);
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-muted: rgba(248, 251, 255, 0.92);
    --shadow-lg: 0 28px 60px rgba(15, 52, 96, 0.18);
    --shadow-md: 0 14px 36px rgba(15, 52, 96, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    padding: 40px 24px;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 108, 189, 0.18), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(242, 140, 40, 0.18), transparent 20%),
        linear-gradient(160deg, #f3f7fb 0%, #eef4f9 45%, #f8eee4 100%);
}

a {
    color: inherit;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.backdrop-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.9;
}

.orb-a {
    width: 360px;
    height: 360px;
    top: -90px;
    right: -110px;
    background: radial-gradient(circle, rgba(15, 108, 189, 0.28) 0%, rgba(15, 108, 189, 0) 72%);
}

.orb-b {
    width: 300px;
    height: 300px;
    bottom: -90px;
    left: -70px;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.26) 0%, rgba(242, 140, 40, 0) 72%);
}

.backdrop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 52, 96, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 52, 96, 0.03) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 90%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 30px;
    align-items: center;
}

.auth-showcase,
.auth-panel {
    animation: rise-in 0.75s ease both;
}

.auth-showcase {
    display: grid;
    gap: 22px;
    padding: 10px 4px;
}

.showcase-copy {
    display: grid;
    gap: 14px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 108, 189, 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.showcase-copy h2 {
    margin: 0;
    max-width: 10em;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.showcase-lead {
    margin: 0;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
}

.showcase-hero-card,
.showcase-card,
.shortcut-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.64) 100%);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.showcase-hero-card {
    padding: 24px;
    border-radius: var(--radius-xl);
}

.showcase-hero-card::after,
.shortcut-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 108, 189, 0.12), transparent 70%);
}

.hero-card-header {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card-header strong {
    font-size: 24px;
    line-height: 1.35;
}

.metric-list {
    display: grid;
    gap: 14px;
}

.metric-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.75);
    border: 1px solid rgba(15, 108, 189, 0.08);
}

.metric-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--primary) 0%, #1993d2 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-label {
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}

.showcase-grid,
.shortcut-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.showcase-card {
    padding: 20px;
    border-radius: 24px;
}

.card-title,
.shortcut-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.showcase-card p,
.shortcut-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.shortcut-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shortcut-card {
    display: block;
    min-height: 170px;
    padding: 22px;
    border-radius: 26px;
    text-decoration: none;
}

.shortcut-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.3;
}

.shortcut-card-link {
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.9) 0%, rgba(26, 147, 210, 0.88) 100%);
    border-color: rgba(15, 108, 189, 0.24);
    color: #fff;
}

.shortcut-card-link .shortcut-label,
.shortcut-card-link p {
    color: rgba(255, 255, 255, 0.86);
}

.auth-panel {
    display: flex;
    justify-content: flex-end;
}

.auth-container {
    width: min(100%, 480px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(22px);
}

.auth-header {
    position: relative;
    padding: 30px 32px 26px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(140deg, #0f6cbd 0%, #0b4f8a 55%, #124769 100%);
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.auth-header h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.auth-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.75;
}

.auth-body {
    padding: 28px 32px 32px;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--surface-muted);
    border: 1px solid rgba(15, 108, 189, 0.08);
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab:hover {
    color: var(--primary);
    background: rgba(15, 108, 189, 0.08);
}

.tab.active {
    background: linear-gradient(145deg, rgba(15, 108, 189, 0.14) 0%, rgba(242, 140, 40, 0.12) 100%);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(15, 108, 189, 0.12);
}

.form-entry-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 241, 223, 0.88) 0%, rgba(255, 247, 236, 0.92) 100%);
    border: 1px solid rgba(242, 140, 40, 0.18);
    color: #805620;
}

.form-entry-note a {
    font-weight: 700;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-error {
    color: #a42828;
    background: rgba(253, 240, 240, 0.96);
    border: 1px solid rgba(214, 69, 69, 0.22);
}

.alert-success {
    color: #0a6e4a;
    background: rgba(233, 249, 242, 0.96);
    border: 1px solid rgba(31, 157, 114, 0.2);
}

.auth-state {
    animation: rise-in 0.45s ease;
}

.section-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.form-note {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.form-note-compact {
    margin-top: 10px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input::placeholder {
    color: #91a1b2;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(15, 108, 189, 0.42);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12);
}

.inline-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-inline-row input {
    min-width: 0;
}

.captcha-image {
    width: 118px;
    min-width: 118px;
    height: 50px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    object-fit: cover;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--primary) 0%, #1993d2 100%);
    box-shadow: 0 14px 28px rgba(15, 108, 189, 0.24);
}

.btn-block {
    width: 100%;
    margin-top: 6px;
}

.btn-inline {
    flex: 0 0 132px;
    white-space: nowrap;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 18px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.form-back {
    margin-top: 18px;
    text-align: center;
}

.hidden {
    display: none !important;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    body {
        padding: 28px 18px 42px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-panel {
        order: 1;
    }

    .auth-showcase {
        order: 2;
    }

    .auth-panel {
        justify-content: center;
    }

    .auth-container {
        width: min(100%, 560px);
    }
}

@media (max-width: 820px) {
    .auth-shell {
        gap: 16px;
    }

    .auth-showcase {
        gap: 12px;
        padding-top: 0;
    }

    .showcase-copy {
        gap: 8px;
    }

    .showcase-copy h2 {
        font-size: 28px;
    }

    .showcase-lead {
        font-size: 14px;
        line-height: 1.7;
    }

    .showcase-hero-card,
    .showcase-grid {
        display: none;
    }

    .shortcut-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .shortcut-card {
        min-height: auto;
        padding: 16px 18px;
    }

    .shortcut-card strong {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .showcase-grid,
    .shortcut-strip {
        grid-template-columns: 1fr;
    }

    .showcase-copy h2 {
        max-width: none;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px 12px 24px;
    }

    .auth-header,
    .auth-body,
    .showcase-hero-card,
    .showcase-card,
    .shortcut-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-container {
        border-radius: 24px;
    }

    .auth-shell {
        gap: 12px;
    }

    .auth-header {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .panel-badge {
        margin-bottom: 10px;
    }

    .showcase-copy {
        display: none;
    }

    .metric-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .metric-value {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .inline-row {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-inline-row {
        flex-direction: row;
        align-items: center;
    }

    .captcha-inline-row .captcha-image {
        width: 118px;
        min-width: 118px;
        flex: 0 0 118px;
    }

    .btn-inline,
    .captcha-image {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
