body.auth-surface {
    margin: 0;
    background: #F7F9FC;
    color: #44546A;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.auth-layout {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 24px;
    align-items: stretch;
}

.auth-aside,
.auth-card {
    border-radius: 20px;
    border: 1px solid #E6EAF2;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(7, 17, 39, 0.05);
}

.auth-aside {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FFFFFF;
}

.auth-card {
    padding: 36px;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #071127;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 28px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #E6EAF2;
    background: #FFFFFF;
    padding: 6px;
}

.auth-site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #E6EAF2;
    background: #F8FAFD;
    color: #44546A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.auth-site-link:hover {
    border-color: rgba(16, 42, 102, 0.18);
    background: #FFFFFF;
    color: #071127;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(16, 42, 102, 0.12);
    background: rgba(16, 42, 102, 0.05);
    color: #102A66;
    font-size: 13px;
    font-weight: 700;
}

.auth-title {
    margin: 18px 0 12px;
    color: #071127;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.18;
    font-weight: 800;
}

.auth-subtitle {
    margin: 0;
    color: #5F7088;
    font-size: 15px;
    line-height: 1.8;
}

.auth-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.auth-trust-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #E6EAF2;
    background: #F8FAFD;
    color: #102A66;
    font-size: 13px;
    font-weight: 700;
}

.auth-panel-shell {
    margin-top: 26px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #E6EAF2;
    background: #FFFFFF;
}

.auth-panel-head {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.auth-panel-head strong {
    color: #071127;
    font-size: 17px;
    font-weight: 800;
}

.auth-panel-head span {
    color: #5F7088;
    font-size: 14px;
    line-height: 1.7;
}

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

.auth-journey-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.auth-journey-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #F2F6FF;
    color: #102A66;
    font-size: 14px;
    font-weight: 800;
}

.auth-journey-step strong {
    display: block;
    margin-bottom: 6px;
    color: #071127;
    font-size: 15px;
    font-weight: 700;
}

.auth-journey-step p {
    margin: 0;
    color: #5F7088;
    font-size: 14px;
    line-height: 1.75;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.auth-feature-item {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #E6EAF2;
    background: #FFFFFF;
}

.auth-feature-item strong {
    display: block;
    margin-bottom: 8px;
    color: #071127;
    font-size: 16px;
    font-weight: 700;
}

.auth-feature-item span {
    display: block;
    color: #5F7088;
    line-height: 1.75;
    font-size: 14px;
}

.auth-feature-list-compact {
    margin-top: 18px;
}

.auth-feature-list-compact .auth-feature-item {
    padding: 16px 18px;
    background: #FAFCFF;
}

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

.auth-help-item {
    display: block;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #E6EAF2;
    background: #FFFFFF;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-help-item strong {
    display: block;
    margin-bottom: 8px;
    color: #071127;
    font-size: 15px;
    font-weight: 700;
}

.auth-help-item span {
    display: block;
    color: #5F7088;
    font-size: 13px;
    line-height: 1.7;
}

.auth-help-item:hover {
    border-color: rgba(16, 42, 102, 0.18);
    box-shadow: 0 10px 20px rgba(7, 17, 39, 0.04);
    transform: translateY(-1px);
}

.auth-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.auth-shortcuts .btn {
    min-width: 138px;
}

.auth-form-head {
    margin-bottom: 24px;
}

.auth-form-head h2 {
    margin: 16px 0 10px;
    color: #071127;
    font-size: 1.9rem;
    line-height: 1.25;
    font-weight: 800;
}

.auth-form-head p {
    margin: 0;
    color: #5F7088;
    line-height: 1.75;
}

.auth-inline-note {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(16, 42, 102, 0.08);
    background: #F8FAFD;
}

.auth-inline-note strong {
    display: block;
    margin-bottom: 8px;
    color: #071127;
    font-size: 15px;
    font-weight: 700;
}

.auth-inline-note p {
    margin: 0;
    color: #5F7088;
    font-size: 14px;
    line-height: 1.75;
}

.auth-switch-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #E6EAF2;
    background: #F7F9FC;
}

.auth-switch-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    color: #44546A;
    text-decoration: none;
    font-weight: 700;
}

.auth-switch-link.is-active {
    background: #FFFFFF;
    color: #071127;
    box-shadow: 0 6px 18px rgba(7, 17, 39, 0.08);
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    color: #071127;
    font-size: 14px;
    font-weight: 700;
}

.auth-label-placeholder {
    opacity: 0;
    user-select: none;
}

.auth-card .form-control,
.auth-card .form-select {
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid #D9E1EC;
    background: #FFFFFF;
    color: #071127;
    padding: 0 16px;
    box-shadow: none;
}

.auth-card .form-control::placeholder {
    color: #8A98AD;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: #5B4BFF;
    box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.08);
}

.auth-inline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: end;
}

.image-code {
    display: block;
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #E6EAF2;
    background: #FFFFFF;
    object-fit: cover;
    cursor: pointer;
}

.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 24px;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #5F7088;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #102A66;
}

.form-check label {
    cursor: pointer;
    font-size: 14px;
}

.btn-auth-primary,
.btn-auth-secondary,
.auth-card .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-auth-primary {
    border: 1px solid #102A66;
    background: #102A66;
    color: #FFFFFF;
}

.btn-auth-primary:hover {
    background: #0B1F4D;
    border-color: #0B1F4D;
    color: #FFFFFF;
}

.btn-auth-secondary,
.auth-card .btn-outline-primary {
    border: 1px solid #D9E1EC;
    background: #FFFFFF;
    color: #102A66;
}

.btn-auth-secondary:hover,
.auth-card .btn-outline-primary:hover {
    border-color: #102A66;
    color: #0B1F4D;
    background: #F8FAFF;
}

.text-link {
    color: #102A66;
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    color: #0B1F4D;
    text-decoration: underline;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: #8A98AD;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 28px);
    height: 1px;
    background: #E6EAF2;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.auth-footer-note {
    margin: 24px 0 0;
    color: #5F7088;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-aside,
    .auth-card {
        padding: 28px;
    }

    .auth-help-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .auth-wrapper {
        padding: 24px 14px;
    }

    .auth-aside,
    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 1.9rem;
    }

    .auth-form-head h2 {
        font-size: 1.55rem;
    }

    .auth-inline-grid,
    .auth-help-grid,
    .auth-check-row,
    .auth-shortcuts {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-site-nav,
    .auth-trust-strip {
        gap: 8px;
    }

    .auth-panel-shell,
    .auth-inline-note {
        padding: 18px;
    }

    .auth-journey-step {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
    }

    .auth-journey-index {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .auth-shortcuts .btn,
    .btn-auth-secondary,
    .auth-card .btn-outline-primary {
        width: 100%;
    }

    .auth-label-placeholder {
        display: none;
    }
}
