/* ==========================================
   AUTH PAGES - CENTRALIZED STYLES
   Login & Register Pages
   ========================================== */

/* Shell Container */
.auth-shell {
    min-height: calc(100vh - 120px);
    padding: 2.2rem 1rem;
    background: linear-gradient(135deg, #eef3ff, #f8fafc);
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding: 1.6rem 0.9rem;
    }
}

/* Glass Card */
.glass-card {
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.60)) border-box;
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    border: 1px solid #ffffffcc;
    border-radius: 1.35rem;
    padding: 2.2rem 2rem 2.3rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .glass-card {
        padding: 1.75rem 1.4rem 1.9rem;
        border-radius: 1.05rem;
    }
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 12%, rgba(99, 102, 241, 0.20), transparent 65%);
    pointer-events: none;
}

.shadow-auth {
    box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.18), 0 8px 18px -6px rgba(15, 23, 42, 0.12);
}

/* Brand & Headings */
.brand-mini {
    font-weight: 700;
    font-size: 1.05rem;
    color: #6366f1;
    letter-spacing: 0.5px;
}

.brand-mini i {
    font-size: 1.15rem;
    color: #6366f1;
}

.auth-title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.auth-sub {
    font-size: 0.9rem;
    color: #475569;
    letter-spacing: 0.35px;
}

@media (max-width: 575.98px) {
    .auth-title {
        font-size: 1.65rem;
    }
    
    .auth-card {
        border-radius: 1rem;
    }
}

/* Form Inputs */
.form-floating > .form-control {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid #dbe2ea;
}

.form-floating > .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.25);
}

.form-floating label {
    color: #64748b;
    font-weight: 500;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.25);
}

/* Blue Gradient Button (Login) */
.btn-gradient {
    --g1: #3b82f6;
    --g2: #2563eb;
    --g3: #1d4ed8;
    border: none !important;
    background: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3)) !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px;
    padding: 0.85rem 1rem !important;
    border-radius: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 22px -8px rgba(59, 130, 246, 0.55), 0 4px 10px -4px rgba(0, 0, 0, 0.25) !important;
    transition: filter 0.28s ease, transform 0.18s ease, box-shadow 0.3s ease !important;
}

.btn-gradient::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%) !important;
    mix-blend-mode: overlay !important;
    pointer-events: none !important;
}

.btn-gradient:hover,
.btn-gradient:focus {
    filter: brightness(1.12) saturate(1.15) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.6), 0 6px 14px -5px rgba(0, 0, 0, 0.32) !important;
    color: #fff !important;
    background: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3)) !important;
}

.btn-gradient:active {
    transform: translateY(0) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.35) !important;
}

/* Red Gradient Button (Register) */
.btn-gradient-red {
    --r1: #ef4444;
    --r2: #dc2626;
    --r3: #b91c1c;
    border: none !important;
    background: linear-gradient(100deg, var(--r1), var(--r2) 55%, var(--r3)) !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px;
    padding: 0.85rem 1rem !important;
    border-radius: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 22px -8px rgba(239, 68, 68, 0.55), 0 4px 10px -4px rgba(0, 0, 0, 0.25) !important;
    transition: filter 0.28s ease, transform 0.18s ease, box-shadow 0.3s ease !important;
}

.btn-gradient-red::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%) !important;
    mix-blend-mode: overlay !important;
    pointer-events: none !important;
}

.btn-gradient-red:hover,
.btn-gradient-red:focus {
    filter: brightness(1.12) saturate(1.15) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 30px -12px rgba(220, 38, 38, 0.6), 0 6px 14px -5px rgba(0, 0, 0, 0.32) !important;
    color: #fff !important;
    background: linear-gradient(100deg, var(--r1), var(--r2) 55%, var(--r3)) !important;
}

.btn-gradient-red:active {
    transform: translateY(0) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.35) !important;
}

/* External Auth Buttons */
.btn-ext {
    font-weight: 600;
    border-radius: 0.85rem;
    border: 1px solid #d4dde6;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    color: #334155;
    transition: all 0.25s ease;
}

.btn-ext:hover {
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: 0 4px 16px -6px rgba(99, 102, 241, 0.35);
}

/* Links */
.link-small {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.link-small:hover {
    text-decoration: underline;
    color: #4f46e5;
}

.alt-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.alt-links .sep {
    color: #94a3b8;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    color: #94a3b8;
    margin: 0.25rem 0;
}

.divider:before,
.divider:after {
    content: "";
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    top: 50%;
    width: 42%;
}

.divider:before {
    left: 0;
}

.divider:after {
    right: 0;
}

/* Text Utilities */
.text-danger.small {
    font-size: 0.7rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .btn-gradient,
    .btn-gradient-red,
    .btn-ext {
        transition: none;
    }
}
