/* CSS Variables - Global theme */
:root {
    --bg-color: #1a1a1a;
    --surface-color: #000000; /* For elements on top of the background */
    --text-color-primary: #ffffff;
    --text-color-secondary: #b0b0b0; /* For less prominent text */
    --border-color: #333333; /* For borders if any */
    --accent-color: #6B4E71; /* Original accent, can be changed if needed */

    /* Background image opacity control */
    --bg-overlay-color: rgba(0, 0, 0, 0.8); /* Controls background image darkness */

    /* Shadow variables for dark theme */
    --shadow-color-umbra: rgba(255, 255, 255, 0.08);
    --shadow-color-penumbra: rgba(255, 255, 255, 0.05);
    --shadow-color-ambient: rgba(255, 255, 255, 0.04);

    /* Font families */
    --font-family-base: Helvetica, Arial, sans-serif; /* Updated base font */
    --font-family-heading: "Poppins", sans-serif; /* Updated heading font */

    /* Standard box shadows using the variables */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color-ambient);
    --shadow-md: 0 4px 6px -1px var(--shadow-color-penumbra), 0 2px 4px -2px var(--shadow-color-ambient);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color-penumbra), 0 4px 6px -4px var(--shadow-color-ambient);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color-penumbra), 0 8px 10px -6px var(--shadow-color-ambient);
}

/* Global body styles */
body {
    margin: 0;
    background: url('/assets/loginregistrationimage.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: var(--font-family-base);
    padding-top: 60px;
    color: var(--text-color-primary);
    position: relative; 
}

/* Background overlay using pseudo-element for better control */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-overlay-color);
    z-index: -1; 
}

/* YouTube player styles */
#youtube-player {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

#youtube-player h2 {
    color: var(--text-color-primary);
    font-family: var(--font-family-heading);
    margin-top: 0;
}

iframe {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: block;
    aspect-ratio: 16/9;
}

/* Shared CSS for common component classes */

/* Standardized button styles - matching original auth form styling */
.btn {
    background-color: var(--text-color-primary);
    color: var(--bg-color);
    padding: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn:hover {
    background-color: var(--text-color-secondary);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--text-color-primary);
}

.btn:disabled {
    background-color: var(--text-color-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button size variants */
.btn--full {
    width: 100%;
}

/* Button group for side-by-side buttons */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}



/* Typography styles */
h1 {
    color: var(--text-color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-family: var(--font-family-heading);
}

h2 {
    color: var(--text-color-primary);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
    font-family: var(--font-family-heading);
}

h3 {
    color: var(--text-color-primary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
    font-family: var(--font-family-heading);
}

p {
    color: var(--text-color-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    margin-top: 0;
}

/* Base container for all content areas */
.container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0 0 0; /* Add padding to account for header and provide spacing */
    width: 100%;
}

.container {
    width: 90%;
            max-width: 800px;
            background: var(--surface-color); /* Changed from white */
            padding: 3rem; /* Default padding */
            border-radius: 8px;
            box-shadow: var(--shadow-lg); /* Using new shadow variable, changed from 0 10px 30px rgba(0,0,0,0.25) */
            position: relative;
            z-index: 1;
}

/* Modifiers for specific use cases */
.container--center {
    text-align: center;
}

.container--video {
    background: var(--bg-color);
    aspect-ratio: 16/9;
    overflow: hidden;
    padding: 0;
    width: 100%;
    margin: 2rem auto;
}

.container--minimal-top {
    padding-top: 10px;
}





.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-secondary); /* Changed from #666 */
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.close-button:hover {
    background-color: var(--border-color); /* Changed from #f0f0f0 */
    color: var(--text-color-primary); /* Changed from #333 */
}

.close-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--text-color-primary); /* Changed from #6B4E71 */
}

.hide-section {
    display: none;
}

/* Media queries for base container and typography */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .container--video {
        margin: 1rem auto;
        padding: 1rem;
    }

    #youtube-player {
        padding: 1rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        width: 100%;/* Adjust margin if header height changes */
        border-radius: 0;
    }
    
    .container--video {
        margin: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .close-button {
        top: 0.5rem;
        right: 0.5rem;
    }

    #youtube-player {
        padding: 1rem;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
