/* ==========================================
   Account Simple Online - Login Page Styles
   Dark Theme with Blue Glow Accents
   ========================================== */

/* Color Variables (via CSS custom properties) */
:root {
    --dark-bg-1: #1a1d24;
    --dark-bg-2: #1e232d;
    --dark-bg-3: #252b38;
    --dark-bg-4: #2d3444;
    --text-primary: #e0e6ed;
    --text-secondary: #a0aab8;
    --text-muted: #6b7280;
    --glow-color: rgba(124, 191, 255, 0.7);
    --glow-color-intense: rgba(124, 191, 255, 1);
    --glow-color-soft: rgba(124, 191, 255, 0.3);
    --accent-green: #34d399;
    --border-subtle: rgba(124, 191, 255, 0.15);
}

/* Dark theme body */
body.dark-theme {
    background-color: var(--dark-bg-1);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* ==========================================
   Page Sections - Alternating Backgrounds
   ========================================== */

.page-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.section-dark {
    background: linear-gradient(180deg, var(--dark-bg-1) 0%, var(--dark-bg-2) 100%);
}

.section-darker {
    background: linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg-3) 50%, var(--dark-bg-2) 100%);
    position: relative;
}

.section-darker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow-color-soft), transparent);
}

.section-darkest {
    background: linear-gradient(180deg, var(--dark-bg-3) 0%, var(--dark-bg-4) 100%);
    position: relative;
}

.section-darkest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow-color-soft), transparent);
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================
   Hero Section - Login
   ========================================== */

#hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    align-items: flex-start;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--glow-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-header {
    text-align: center;
    margin-bottom: 40px;
}

.hero-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 30px var(--glow-color-soft);
}

.hero-header .tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Login Card */
.login-card {
    background: var(--dark-bg-3);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 40px var(--glow-color-soft);
    transition: box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 0 60px var(--glow-color);
}

.logout-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #fca5a5;
    text-align: center;
}

.demo-info {
    background: rgba(124, 191, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.demo-info p {
    margin: 0;
    color: var(--text-secondary);
}

.demo-info p:first-child {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.demo-credentials span {
    color: var(--glow-color-intense);
    font-family: monospace;
    font-size: 0.95rem;
}

/* Form Styling */
.login-card .form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.login-card .form-control {
    background: var(--dark-bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card .form-control:focus {
    background: var(--dark-bg-2);
    border-color: var(--glow-color);
    box-shadow: 0 0 0 3px var(--glow-color-soft);
    color: var(--text-primary);
    outline: none;
}

.login-card .form-control::placeholder {
    color: var(--text-muted);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.login-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   Button Styles with Glow
   ========================================== */

.btn-glow {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5),
                0 0 20px var(--glow-color);
    transform: translateY(-2px);
}

.btn-secondary-glow {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    border: 1px solid rgba(124, 191, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary-glow:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #ffffff;
    border-color: var(--glow-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                0 0 20px var(--glow-color-soft);
    transform: translateY(-2px);
}

.btn-signup {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    margin-top: 8px;
}

.btn-signup:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Google Login Button */
.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.google-login-button:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-logo {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Tutorial Section
   ========================================== */

#tutorial-section {
    min-height: auto;
    padding: 80px 20px;
}

.info-card {
    background: var(--dark-bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.info-card h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
                0 0 30px var(--glow-color-soft);
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   Status Section
   ========================================== */

#status-section {
    min-height: auto;
    padding: 80px 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.status-card {
    background: var(--dark-bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
                0 0 30px var(--glow-color-soft);
    border-color: var(--glow-color);
}

.status-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--glow-color-intense);
}

.status-icon .bi-check-circle-fill {
    color: var(--accent-green);
}

.status-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.status-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.status-live strong {
    color: var(--accent-green);
}

.support-link,
.docs-link {
    color: var(--glow-color-intense);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.support-link:hover,
.docs-link:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

/* ==========================================
   Footer
   ========================================== */

#main-footer {
    background: var(--dark-bg-1);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
}

#main-footer .footer-content {
    text-align: center;
}

#main-footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================
   Modal Overrides for Dark Theme
   ========================================== */

.modal-content {
    background: var(--dark-bg-3);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.modal-header {
    border-bottom-color: var(--border-subtle);
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-body a {
    color: var(--glow-color-intense);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 992px) {
    .status-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2.2rem;
    }

    .hero-header .tagline {
        font-size: 1.1rem;
    }

    .login-card {
        padding: 30px 24px;
        margin: 0 10px;
    }

    .info-card {
        padding: 32px 20px;
    }

    .info-card h2 {
        font-size: 1.8rem;
    }

    .page-section {
        padding: 40px 15px;
    }

    #hero-section {
        padding-top: 80px;
    }

    .status-card {
        padding: 24px;
    }
}
