/* ==========================================================================
   1. GLOBAL STYLES, RESET & TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body { 
    font-family: 'Inter', Arial, sans-serif; 
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
    display: flex; 
    flex-direction: column; 
}

h1, h2, h3 { 
    font-family: 'Poppins', sans-serif; 
    color: #222; 
}

/* ==========================================================================
   2. HEADER & BANNER LAYOUT (Cosmic Orange / Light Blue Split)
   ========================================================================== */
header { 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    position: relative;
    width: 100%;
    background: linear-gradient(to right, #FF5E13 50%, #E0F2FE 50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    font-weight: bold; 
    font-size: 1.6rem; 
    text-decoration: none; 
    color: #ffffff; 
    padding: 1.2rem 0 1.2rem 5%; 
    flex: 1;
}

nav { 
    display: flex; 
    gap: 25px; 
    align-items: center;
    padding: 1.2rem 5% 1.2rem 0; 
    justify-content: flex-end;
    flex: 1;
}

nav a { 
    color: #000000; 
    text-decoration: none; 
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover { 
    color: #FF5E13; 
}

/* ==========================================================================
   3. NAVIGATION ELEMENTS (Login Button & Mobile Responsive Controls)
   ========================================================================== */
.login-btn { 
    background: #000000; 
    color: #ffffff !important;
    padding: 8px 22px; 
    border-radius: 4px; 
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease; 
}

.login-btn:hover { 
    background-color: #4ADE80; 
    color: #111827 !important;  
}

.menu-toggle {
    display: none; 
    font-size: 1.6rem;
    color: #000000; 
    cursor: pointer;
    padding-right: 5%;
}

#menu-checkbox {
    display: none; 
}

/* ==========================================================================
   4. STRUCTURE PANELS (Forms, Main Content & Footer)
   ========================================================================== */
main { 
    flex: 1; 
    padding: 2.5rem 5%; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.main-content {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block; 
}

.form-container {
    background: white;
    margin-top: 20px;
}

.form-group { 
    margin-bottom: 1.25rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
}

.form-group input[type="text"], 
.form-group input[type="password"] { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.submit-btn { 
    width: 100%; 
    padding: 12px 20px; 
    background: #0056b3; 
    color: white; 
    border: none; 
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer; 
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.submit-btn:hover { 
    background: #004085; 
}

footer { 
    background: #111; 
    color: #999; 
    text-align: center; 
    padding: 2.5rem 5%; 
    font-size: 0.9rem; 
    width: 100%;
    margin-top: auto;
}

footer p { 
    margin-bottom: 0.5rem; 
}

/* ==========================================================================
   5. BANNER OVERLAY STYLING (RESPONSIVE LEGAL SCREEN)
   ========================================================================== */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 15px;
}

.banner-content {
    background: #222;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    max-width: 650px;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid #444;
}

.banner-content h2 {
    margin-top: 0;
    color: #ff9800;
    text-align: center;
    margin-bottom: 15px;
}

.banner-content p, 
.banner-content li {
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

.banner-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.banner-content li {
    margin-bottom: 10px;
}

.btn-container {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s ease;
}

.btn-agree { background-color: #4CAF50; color: white; }
.btn-agree:hover { background-color: #45a049; }
.btn-disagree { background-color: #f44336; color: white; }
.btn-disagree:hover { background-color: #da190b; }

/* ==========================================================================
   6. DEVICE ADAPTATION & RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    header {
        background: #FF5E13; 
    }

    .menu-toggle {
        display: block; 
        color: #ffffff; 
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #E0F2FE; 
        padding: 1.5rem 5%;
        gap: 18px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 100;
        align-items: flex-start;
        flex: none;
    }

    #menu-checkbox:checked ~ nav {
        display: flex;
    }

    .login-btn {
        width: 100%;
        text-align: center;
    }

    .main-content {
        margin: 0px auto;
        padding: 20px;
        border-radius: 0;
    }

    .banner-content {
        padding: 20px;
    }
    
    .btn-container {
        flex-direction: row;
        gap: 10px;
    }
}

@media (min-width: 600px) {
    .submit-btn { 
        width: auto; 
    }
}