/* CSS Variables - matching main site colors */
:root {
    /* Color palette variables */
    --bg-color: #F5E6D3;        /* Light cream/beige background */
    --primary-color: #D4A29C;   /* Warm terracotta for sections */
    --accent-color: #C4A7E7;    /* Soft lavender for accents */
    --text-color: #333;
    --text-light: #666;
    --white: #FDF8F3;           /* Light cream - softer than pure white */
    --shadow: rgba(0,0,0,0.1);
}

/* Reset and Base Styles */
* {
    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-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.splash-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
    overflow: hidden;
    min-height: 600px;
}

/* Logo Section */
.logo-section {
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
}

.logo-image {
    max-width: 450px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
}

/* Auth Container */
.auth-container {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
}

.username-feedback {
    margin-top: 5px;
    font-size: 0.9em;
    min-height: 20px;
}

.username-feedback.available {
    color: #28a745;
}

.username-feedback.taken {
    color: #dc3545;
}

.username-feedback.checking {
    color: #007bff;
}

/* Buttons */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 167, 231, 0.3);
    background: #B497D7; /* Darker shade of accent */
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Google Sign-in Button */
.btn-google {
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Form Links */
.form-links {
    text-align: center;
    margin: 20px 0;
}

.form-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Form Divider */
.form-divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.form-divider span {
    background: transparent;
    padding: 15px 0px 0px 0px;
    color: #6c757d;
    font-size: 0.9em;
    display: block;
}

/* Alpha Testing Info */
.alpha-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.alpha-info h4 {
    color: #495057;
    margin-bottom: 10px;
}

.alpha-info p {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

.alpha-info ul {
    list-style: none;
    margin: 10px 0;
}

.alpha-info li {
    background: #e9ecef;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e9ecef;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    min-width: 300px;
    animation: slideIn 0.3s ease-in-out;
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

.message.info {
    background: #17a2b8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .splash-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .logo-section {
        padding: 40px 20px;
    }
    
    .logo-image {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
    
    .logo h1 {
        font-size: 2.5em;
    }
    
    .tagline {
        font-size: 1.1em;
        max-width: 90%;
        margin: 10px auto;
        padding: 0 10px;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .auth-container {
        padding: 40px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .auth-form {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .auth-form h2 {
        font-size: 1.8em;
    }
    
    .form-group input,
    .btn-primary,
    .btn-secondary,
    .btn-google {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px !important;
        padding: 14px;
    }
    
    .message {
        min-width: auto;
        margin: 0 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .splash-container {
        width: calc(100vw - 20px);
        border-radius: 10px;
    }
    
    .auth-container {
        padding: 30px 15px;
    }
    
    .logo-section {
        padding: 30px 15px;
    }
    
    .logo-image {
        max-width: 150px;
    }
    
    .tagline {
        font-size: 1em;
        padding: 0 5px;
    }
    
    .form-group input, 
    .btn-primary, 
    .btn-secondary,
    .btn-google {
        padding: 12px;
        font-size: 16px !important;
    }
    
    .form-subtitle {
        font-size: 0.9em;
        padding: 0 10px;
    }
}