body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 30%),
        linear-gradient(135deg, #071226, #08152d, #0b1b38);
    color: #ffffff;
}

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

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(8, 19, 41, 0.96);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.25));
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #60a5fa;
}

.auth-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 0.96rem;
}

.auth-label {
    color: #cbd5e1;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-input {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 48px;
}

.auth-input:focus {
    background-color: #172033 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-btn-primary {
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    transition: all 0.2s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #ffffff;
}

.auth-footer-text {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.auth-link {
    color: #7dd3fc;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: #bae6fd;
    text-decoration: underline;
}

.auth-alert {
    border-radius: 14px;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

body.auth-page .flash-wrapper {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(92vw, 420px);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

body.auth-page .flash-alert {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.4;
    font-weight: 600;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

body.auth-page .flash-alert.alert-danger {
    border-left: 4px solid #ef4444;
    color: #fecaca;
}

body.auth-page .flash-alert.alert-success {
    border-left: 4px solid #22c55e;
    color: #bbf7d0;
}

body.auth-page .flash-alert .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transform: scale(0.8);
}

body.auth-page .flash-alert .btn-close:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    body.auth-page .flash-wrapper {
        top: 12px;
        width: calc(100vw - 24px);
    }

    body.auth-page .flash-alert {
        padding: 11px 14px;
        font-size: 0.88rem;
        border-radius: 12px;
    }
}



@media (max-width: 576px) {
    .auth-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

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

    .auth-logo {
        width: 62px;
        height: 62px;
    }
}