/* Twitter.MS Landing Page Styles - Matching Platform Design */

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

:root {
    /* Dark theme (default) - matching platform */
    --main-background: rgb(0, 0, 0);
    --main-search-background: rgb(32, 35, 39);
    --main-sidebar-background: rgb(22, 24, 28);
    --main-accent: rgb(29, 155, 240);
    
    --accent-blue: rgb(29, 155, 240);
    --accent-blue-hover: rgb(26, 140, 216);
    
    --text-primary: rgb(231, 233, 234);
    --text-secondary: rgb(113, 118, 123);
    --border-color: rgb(47, 51, 54);
    
    --success-color: rgb(29, 155, 240);
    --error-color: rgb(244, 33, 46);
    
    --bg-card: rgb(22, 24, 28);
    --bg-card-hover: rgb(32, 35, 39);
}

/* Light theme */
body.light-theme,
html.light-theme {
    --main-background: rgb(255, 255, 255);
    --main-search-background: rgb(239, 243, 244);
    --main-sidebar-background: rgb(247, 249, 249);
    --main-accent: rgb(29, 155, 240);
    
    --text-primary: rgb(15, 20, 25);
    --text-secondary: rgb(83, 100, 113);
    --border-color: rgb(207, 217, 222);
    
    --bg-card: rgb(255, 255, 255);
    --bg-card-hover: rgb(247, 249, 249);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--main-background);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header with Logo */
.landing-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.landing-logo {
    height: 60px;
    width: auto;
}

.landing-brand {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
}

body.light-theme .theme-toggle-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Hero Section with Slides */
.hero-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
    padding: 20px;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-blue);
    width: 32px;
    border-radius: 6px;
}

.indicator:hover {
    background: var(--accent-blue-hover);
}

/* Pre-registration Section */
.preregister-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 40px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.preregister-container {
    max-width: 500px;
    margin: 0 auto;
}

.preregister-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 10px;
}

.preregister-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: rgba(29, 155, 240, 0.1);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

body.light-theme .message.success {
    background: rgba(29, 155, 240, 0.1);
    color: var(--accent-blue);
}

.message.error {
    background: rgba(244, 33, 46, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

body.light-theme .message.error {
    background: rgba(244, 33, 46, 0.1);
    color: var(--error-color);
}

/* Form Styles */
.preregister-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--main-background);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.2);
}

body.light-theme .form-group input {
    background: var(--bg-white);
}

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

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--accent-blue-hover);
}

.submit-btn:active {
    opacity: 0.9;
}

.privacy-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.5;
}

/* Footer */
.landing-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 1.2rem;
    }
    
    .preregister-section {
        padding: 40px 20px;
    }
    
    .preregister-title {
        font-size: 2rem;
    }
    
    .preregister-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 10px;
    }
    
    .hero-section {
        padding: 30px 15px;
        min-height: 300px;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .preregister-section {
        padding: 30px 15px;
    }
}

