/* ============================================
   Auth Layout (Signup, Login, Verify)
   ============================================ */
/* Page Wrapper for Split Screen V2 (Light Blue) */
.auth-page-wrapper.v2 {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #edf6fb;
    overflow: hidden;
}

/* Form Section (Left) */
.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(rgba(237, 246, 251, 0.7), rgba(237, 246, 251, 0.7)), url('/assets/images/admin-login-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Grid Pattern on Left Side */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(40, 150, 205, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(rgba(40, 150, 205, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 150, 205, 0.04) 1px, transparent 1px);
    background-size: 30px 30px, 120px 120px, 120px 120px;
    background-position: center;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}


/* Card Styling for Light Theme */
.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(40, 150, 205, 0.08);
    border: 1px solid rgba(40, 150, 205, 0.1);
}

.auth-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--admin-text-secondary);
    font-size: 15px;
    margin-bottom: 30px;
}

/* Hero Section (Right) */
.auth-hero-v2 {
    flex: 1.2;
    background: #edf6fb;
    display: flex;
    align-items: center;
    padding: 100px;
    position: relative;
    border-left: 1px solid rgba(40, 150, 205, 0.1);
    overflow: hidden;
}

.auth-hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(40, 150, 205, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(rgba(40, 150, 205, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 150, 205, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 120px 120px, 120px 120px;
    background-position: center;
    opacity: 0.8;
}

.auth-hero-v2::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(40, 150, 205, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content-v2 {
    max-width: 550px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(40, 150, 205, 0.12);
    border: 1px solid rgba(40, 150, 205, 0.15);
    position: relative;
}

.quote-icon {
    font-size: 44px;
    color: var(--admin-primary);
    opacity: 0.2;
    margin-bottom: 25px;
    display: block;
}

.testimonial-large {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--admin-text-primary);
    margin-bottom: 25px;
}

.testimonial-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--admin-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.admin-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.module-badge {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(40, 150, 205, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.module-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(40, 150, 205, 0.3);
    box-shadow: 0 10px 25px rgba(40, 150, 205, 0.08);
}

.module-badge i {
    width: 32px;
    height: 32px;
    background: rgba(40, 150, 205, 0.1);
    color: var(--admin-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.module-info {
    display: flex;
    flex-direction: column;
}

.module-info span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: var(--admin-text-primary);
}

.module-info span:last-child {
    font-size: 11px;
    color: var(--admin-text-secondary);
}

/* ============================================
   Supabase Status Panel
   ============================================ */
.supabase-status-panel {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(40, 150, 205, 0.12);
    border: 1px solid rgba(40, 150, 205, 0.1);
    overflow: hidden;
    min-width: 220px;
    z-index: 10;
}

.status-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(40, 150, 205, 0.08) 0%, rgba(108, 92, 231, 0.05) 100%);
    border-bottom: 1px solid rgba(40, 150, 205, 0.1);
    font-size: 13px;
    font-weight: 700;
    color: var(--admin-text-primary);
}

.status-panel-header i {
    color: var(--admin-primary);
    font-size: 14px;
}

.status-panel-items {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-dot.degraded {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-dot.checking {
    background: #94a3b8;
    animation: pulse-check 1.5s ease-in-out infinite;
}

.status-dot.neutral {
    background: #64748b;
}

@keyframes pulse-check {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-primary);
}


/* Admin Responsive Fixes */
@media (max-width: 1024px) {
    .auth-hero-v2 {
        display: none;
    }

    .auth-container {
        width: 100%;
    }

    .auth-card {
        padding: 30px 20px;
    }
}


/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
    z-index: 1;
}

.logo-signature {
    font-family: 'Italianno', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gray-900);
}

.auth-logo .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
}

.auth-logo .highlight {
    color: #2896cd;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 28px;
    padding: 3.5rem 2.5rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--admin-text-secondary);
    font-size: 1rem;
}

/* Form Styles */
.required {
    color: var(--error);
    margin-left: 2px;
}

.optional {
    color: var(--admin-text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

.auth-card-footer {
    border-top: 1px solid var(--admin-input-border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer-links {
    font-size: 13px;
    color: var(--admin-text-secondary);
}

.auth-footer-links a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-footer-links a:hover {
    color: var(--admin-primary);
}

/* Back Link inside card */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--admin-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--primary-600);
    transform: translateX(-3px);
}

.back-link i {
    font-size: 0.9rem;
}

/* Verify Email Page */
.verify-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(40, 150, 205, 0.1) 0%, rgba(108, 92, 231, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ring 2s ease-out infinite;
}

.verify-icon i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 150, 205, 0.2);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(40, 150, 205, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 150, 205, 0);
    }
}

.verify-email-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-600);
    word-break: break-all;
}

.verify-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.verify-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
}

.verify-steps li i {
    color: var(--primary-500);
    margin-top: 0.15rem;
}

.resend-timer {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    margin-top: 0.5rem;
}

/* Auth Info (Verification notice) */
.auth-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--admin-text-secondary);
    font-size: 0.875rem;
}

.auth-info i {
    color: var(--primary-500);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--admin-text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--admin-input-border);
}

.auth-divider:not(:empty)::before {
    margin-right: 1rem;
}

.auth-divider:not(:empty)::after {
    margin-left: 1rem;
}

/* Auth Link (Switch between Login/Signup) */
.auth-link {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--admin-text-secondary);
}

.auth-link a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}