.auth-page {
    margin-top: -2rem;
    margin-bottom: -2rem;
    padding: clamp(2.25rem, 4vw, 4rem) 0 clamp(2rem, 3.5vw, 3rem);
}

main.main-content:has(.auth-page) + .footer {
    margin-top: 0 !important;
}

.auth-page .auth-card,
.auth-page .auth-shell {
    width: min(100%, 460px);
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.auth-page .auth-card::before,
.auth-page .auth-shell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
}

.auth-page .auth-card > .row,
.auth-page .auth-shell > .row {
    justify-content: center;
}

.auth-page .auth-sidebar,
.auth-page .auth-side {
    display: none !important;
}

.auth-page .auth-card .col-lg-7,
.auth-page .auth-shell .col-lg-7,
.auth-page .auth-shell .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.auth-page .auth-side .brand {
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.auth-page .auth-main,
.auth-page .auth-card .p-4,
.auth-page .auth-card .p-lg-5 {
    background: #ffffff;
    padding: clamp(1.6rem, 4vw, 2.35rem) !important;
}

.auth-page .auth-main {
    padding: clamp(1.6rem, 4vw, 2.35rem) !important;
}

.auth-page h3,
.auth-page .title {
    font-size: clamp(1.45rem, 2vw, 1.7rem);
}

.auth-page .auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 0.85rem;
    border: 1px solid #ffe0c2;
    border-radius: 16px;
    background: #fff7ed;
}

.auth-page .auth-brand-mark img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.auth-page .auth-title-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-page .auth-title-note i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.auth-page .title {
    color: #10213f;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-page .subtitle {
    color: #64748b;
    margin-bottom: 1.1rem;
}

.auth-page .logo {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.65rem;
    letter-spacing: 0;
}

.auth-page .form-label {
    font-weight: 600;
    color: #1e293b;
}

.auth-page .form-control {
    border-radius: 10px;
    border: 1px solid #d9e2ef;
}

.auth-page .form-control:focus {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: none;
}

html.hstore-keyboard-focus .auth-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.auth-page .input-group-text {
    border: 1px solid #d9e2ef;
    background: #f8fbff;
}

.auth-page .input-group > .input-group-text:first-child {
    border-radius: 10px 0 0 10px;
}

.auth-page .btn-primary {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0;
    min-height: 46px;
}

.auth-page .google-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.95rem;
    margin: 1.25rem 0 1rem;
}

.auth-page .google-auth-divider::before,
.auth-page .google-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-page .google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-page .google-auth-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
    color: #0f172a;
}

.auth-page .google-auth-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.auth-page .security-item,
.auth-page .tip-card {
    border: 1px solid #e5ecf6;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.9rem 1rem;
    color: #334155;
    font-size: 0.95rem;
}

.auth-page .security-item {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    margin-top: 12px;
}

.auth-page .tip-card i {
    color: var(--primary-color);
}

.auth-page .code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 1.3px;
    font-weight: 600;
}

.auth-page .password-toggle {
    border-left: 0;
    background: #f8fbff;
}

.auth-page .back-home-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.auth-page .back-home-link:hover {
    color: var(--primary-color);
}

@media (max-width: 575.98px) {
    .auth-page {
        margin-top: -2rem;
        margin-bottom: -2rem;
        padding: 1.25rem 0 1.5rem;
    }

    .auth-page .auth-card,
    .auth-page .auth-shell {
        width: 100%;
        border-radius: 10px;
    }

    .auth-page .auth-main {
        padding: 1.4rem;
    }
}
