/* =====================================================
   LANDING PAGE STYLES
   Uses theme.css variables only - no hardcoded colors
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* SCANLINES & NOISE */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

/* HAMBURGER MENU */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2001;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0.6rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.mobile-menu-toggle:hover span {
    background: var(--bg-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-buttons {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
    z-index: 2000;
    padding: 5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-menu);
}

.header-buttons.active {
    right: 0;
}

.header-buttons .theme-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.header-buttons .theme-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-align: center;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.2rem;
}

.header-buttons .header-btn,
.header-buttons .theme-btn {
    width: 100%;
    padding: 1rem;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    border-radius: 2px;
    color: var(--btn-text);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    white-space: nowrap;
}

.header-buttons .header-btn:hover,
.header-buttons .theme-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-border);
}

/* MAIN CONTAINER */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

/* CONTENT WRAPPER - Side by Side */
.landing-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* LEFT SIDE - Hero */
.landing-hero {
    flex: 1;
    max-width: 550px;
}

.logo-section {
    margin-bottom: 2rem;
}

.brand {
    font-size: 3.5rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.brand-zen {
    color: var(--accent-primary);
}

.brand-os {
    color: var(--accent-secondary);
}

.tagline {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.features {
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 0.75rem;
    min-width: 20px;
}

.feature-text {
    line-height: 1.5;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: uppercase;
}

/* RIGHT SIDE - Auth Form */
.landing-auth {
    width: 400px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 2px;
    padding: 2.5rem;
}

/* AUTH TABS */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* FORM */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

/* BUTTON */
.auth-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    border-radius: 2px;
    color: var(--btn-text);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2rem;
    text-transform: uppercase;
}

.auth-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-border);
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* AUTH FOOTER LINK */
.auth-footer-link {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    margin-left: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-link:hover {
    color: var(--accent-secondary);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

/* RESPONSIVE */
/* =====================================================
   RESPONSIVE DESIGN (Mobile-First)
   Optimized for modern devices
   ===================================================== */

/* Base: Mobile (320px+) */
.landing-container {
    padding: 1rem;
}

.landing-content {
    flex-direction: column;
    gap: 2rem;
}

.landing-hero {
    max-width: 600px;
    text-align: center;
}

.brand {
    font-size: 2.5rem;
    justify-content: center;
}

.feature {
    justify-content: center;
}

.stats {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.landing-auth {
    width: 100%;
    max-width: 450px;
    padding: 2rem 1.5rem;
}

/* Modern phones (390px+) */
@media (min-width: 390px) {
    .landing-container {
        padding: 1.5rem;
    }
    
    .brand {
        font-size: 2.75rem;
    }
}

/* Larger phones (430px+) */
@media (min-width: 430px) {
    .brand {
        font-size: 3rem;
    }
    
    .landing-auth {
        padding: 2.5rem 2rem;
    }
}

/* Small tablets (640px+) */
@media (min-width: 640px) {
    .landing-container {
        padding: 2rem;
    }
    
    .stats {
        flex-direction: row;
        gap: 2rem;
    }
    
    .stat-item {
        text-align: left;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .landing-container {
        padding: 3rem 2rem;
    }
    
    .brand {
        font-size: 3.5rem;
    }
}

/* Laptops (1024px+) */
@media (min-width: 1024px) {
    .landing-content {
        flex-direction: row;
        gap: 4rem;
    }
    
    .landing-hero {
        text-align: left;
    }
    
    .brand {
        justify-content: flex-start;
    }
    
    .feature {
        justify-content: flex-start;
    }
    
    .stats {
        justify-content: flex-start;
    }
    
    .stat-item {
        text-align: left;
    }
}

/* Desktop (1280px+) */
@media (min-width: 1280px) {
    .landing-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 4rem 2rem;
    }
    
    .brand {
        font-size: 4rem;
    }
}

/* Large desktop (1920px+) */
@media (min-width: 1920px) {
    .landing-container {
        max-width: 1600px;
    }
    
    .landing-content {
        gap: 6rem;
    }
}

/* 4K displays (2560px+) */
@media (min-width: 2560px) {
    .landing-container {
        max-width: 2000px;
    }
    
    .brand {
        font-size: 4.5rem;
    }
    
    body {
        font-size: 18px;
    }
}

/* =====================================================
   ERROR MODAL
   ===================================================== */

.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.error-modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.error-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.error-modal-close:hover {
    color: var(--accent-primary);
}

.error-modal-icon {
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--accent-primary);
}

.error-modal-message {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.error-modal-btn {
    padding: 0.75rem 2.5rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--btn-border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-modal-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-border);
}

/* =====================================================
   REGISTRATION DISABLED NOTICE
   ===================================================== */

.registration-disabled-notice {
    background: rgba(255, 193, 7, 0.08);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
    animation: fadeIn 0.3s ease;
}

.registration-disabled-notice .notice-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.registration-disabled-notice h3 {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.registration-disabled-notice p {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 1rem;
}

.registration-disabled-notice .notice-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.registration-disabled-notice a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.registration-disabled-notice a:hover {
    border-bottom-color: var(--accent-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
