/* =============================================================================
   Auth shell — LoginLayout + Login page (toàn bộ giao diện đăng nhập mới)
   ============================================================================= */

.auth-shell {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
    background-color: #070b14;
    background-image:
        radial-gradient(ellipse 100% 80% at 15% -20%, rgba(14, 165, 233, 0.35), transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 50%, rgba(1, 74, 173, 0.45), transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 110%, rgba(4, 158, 224, 0.2), transparent 55%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    position: relative;
    overflow-x: hidden;
}

.auth-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.auth-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1024px;
    animation: authReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 32px 64px -12px rgba(0, 0, 0, 0.55),
        0 0 120px -30px rgba(14, 165, 233, 0.25);
}

@media (max-width: 899.98px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-inline: auto;
    }
}

/* —— Cột thương hiệu —— */
.auth-brand {
    position: relative;
    padding: clamp(2rem, 5vw, 3.25rem);
    background: linear-gradient(160deg, #0c1220 0%, #111827 40%, #0f172a 100%);
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    min-height: 420px;
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15), transparent 50%);
    pointer-events: none;
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
}

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.875rem;
    margin-bottom: 1.5rem;
}

.auth-brand__logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
}

.auth-brand__title {
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand__tagline {
    font-size: 0.9375rem;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.5;
    margin: 0;
    max-width: 28ch;
}

.auth-features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 899.98px) {
    .auth-features {
        display: none;
    }

    .auth-brand {
        min-height: auto;
        padding-bottom: 1.75rem;
    }
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(14, 165, 233, 0.25);
}

.auth-feature__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(1, 74, 173, 0.4));
    color: #e0f2fe;
}

.auth-feature__text h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.auth-feature__text p {
    font-size: 0.75rem;
    margin: 0;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.35;
}

/* —— Cột form —— */
.auth-form-panel {
    background: #fafbfc;
    padding: clamp(2rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

.auth-form-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 0.35rem;
}

.auth-form-box .auth-form-lead {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.75rem;
}

.auth-form-box .form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-form-box .input-group-lg > .form-control {
    border-radius: 0 0.75rem 0.75rem 0;
    border: 1px solid #e2e8f0;
    border-left: none;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    background: #fff;
}

.auth-form-box .input-group-lg > .form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.auth-form-box .input-group-text {
    border-radius: 0.75rem 0 0 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f1f5f9 !important;
    color: #0369a1;
    padding-inline: 1rem;
}

.auth-form-box .form-check-label {
    font-size: 0.875rem;
    color: #475569;
}

.auth-form-box .btn-auth-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 45%, #0ea5e9 100%);
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-form-box .btn-auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(3, 105, 161, 0.45);
}

.auth-form-box .btn-auth-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.auth-form-box .alert-danger {
    border-radius: 0.75rem;
    border: none;
    font-size: 0.875rem;
}

/* Loading */
.auth-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 20, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
}

.auth-loading__card {
    text-align: center;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    min-width: 260px;
}

.auth-loading__card .spinner-border {
    width: 2.75rem;
    height: 2.75rem;
    color: #0284c7 !important;
}

.auth-loading__title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    margin-top: 1rem;
}

.auth-loading__sub {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.35rem 0 0;
}

