/* ==========================================
   AUTHENTICATION PAGES (LOGIN & SIGNUP)
   Pixel-Perfect Developer-First Theme
========================================== */

.navbar-brand img,
.brand-logo-img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 9px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

.brand-dot {
    color: #ef4444 !important;
    -webkit-text-fill-color: #ef4444 !important;
    font-weight: 900;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -0.16em;
    line-height: 0;
    margin: 0 0.5px;
}

.brand-accent {
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-section {
    min-height: calc(100vh - 160px);
    background: linear-gradient(135deg, #090e1a 0%, #150d36 35%, #2a0f5e 70%, #431478 100%);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    display: flex;
    align-items: center;
}

/* Ambient Background Glows */
.auth-ambient-glow-1 {
    position: absolute;
    top: -150px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.auth-ambient-glow-2 {
    position: absolute;
    bottom: -100px;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

/* Left Brand Panel */
.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 2rem;
}

.auth-headline {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.auth-headline .highlight {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subheadline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 2.25rem;
}

/* Value Highlights */
.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.auth-feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(4px);
}

.auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-feature-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1px;
}

.auth-feature-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Interactive Uptime Card Visual */
.auth-uptime-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    max-width: 480px;
}

.auth-uptime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.auth-uptime-header .status-live {
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-uptime-header .status-live i {
    font-size: 0.75rem;
}

.auth-uptime-header .uptime-score {
    color: #34d399;
    font-weight: 700;
}

.auth-uptime-chart-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.auth-uptime-svg {
    width: 100%;
    height: 45px;
    overflow: visible;
}

.auth-uptime-days {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 4px;
}

.auth-uptime-days .active-day {
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================
   RIGHT AUTH CARD (WHITE CONTAINER)
========================================== */
.auth-form-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    max-width: 490px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .auth-form-card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7) !important;
}

.auth-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.auth-card-title,
html:not([data-theme="dark"]) .auth-card-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a !important;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

[data-theme="dark"] .auth-card-title {
    color: #ffffff !important;
}

.auth-card-subtitle,
html:not([data-theme="dark"]) .auth-card-subtitle {
    font-size: 0.92rem;
    color: #64748b !important;
    text-align: center;
    margin-bottom: 1.75rem;
}

[data-theme="dark"] .auth-card-subtitle {
    color: #94a3b8 !important;
}

/* Custom Input Styling */
.auth-input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.auth-input-label,
html:not([data-theme="dark"]) .auth-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155 !important;
    margin-bottom: 0.45rem;
}

[data-theme="dark"] .auth-input-label {
    color: #cbd5e1 !important;
}

.auth-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.auth-input-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3;
}

.auth-input-control {
    width: 100% !important;
    height: 48px !important;
    padding: 0 42px 0 44px !important;
    font-size: 0.95rem;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box !important;
}

.auth-input-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
}

.auth-input-control:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: #6366f1 !important;
}

.auth-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
    transition: color 0.2s ease;
    z-index: 4;
}

.auth-password-toggle:hover {
    color: #475569 !important;
}

/* Submit Button */
.auth-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
    text-decoration: none;
}

.auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.48);
    color: #ffffff !important;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 0.85rem;
}

/* Social Buttons */
.auth-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-btn-social {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.auth-btn-social i {
    font-size: 1.15rem;
}

.auth-footer-switch {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
}

.auth-footer-switch a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-switch a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ==========================================
   DARK THEME: AUTH FORM CONTROLS & CARDS
========================================== */
[data-theme="dark"] .auth-input-control {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .auth-input-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important;
}

[data-theme="dark"] .auth-input-icon {
    color: #64748b !important;
}

[data-theme="dark"] .auth-password-toggle {
    color: #64748b !important;
}

[data-theme="dark"] .auth-password-toggle:hover {
    color: #cbd5e1 !important;
}

[data-theme="dark"] #passwordChecklist {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] #passwordChecklist .text-secondary {
    color: #94a3b8 !important;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    border-color: #1e293b !important;
}

[data-theme="dark"] .auth-btn-social {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .auth-btn-social:hover {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .auth-btn-social i.text-dark {
    color: #ffffff !important;
}

[data-theme="dark"] .auth-footer-switch {
    color: #94a3b8 !important;
}


/* ==========================================
   RESPONSIVE STYLES FOR AUTH PAGES
========================================== */
@media (max-width: 991px) {
    .auth-hero-section {
        padding: 50px 0;
    }
    .auth-headline {
        font-size: 2.35rem;
        text-align: center;
    }
    .auth-subheadline {
        text-align: center;
        margin: 0 auto 2rem;
    }
    .auth-feature-list,
    .auth-uptime-card {
        margin: 0 auto 2rem;
    }
    .auth-form-card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-hero-section {
        padding: 35px 0;
    }
    .auth-form-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    .auth-social-grid {
        grid-template-columns: 1fr;
    }
    .auth-headline {
        font-size: 1.95rem;
    }
}
