/* =========================================
   AUTHENTICATION PAGES (SIGN IN / SIGN UP)
   ========================================= */

/* Reset & Base */
.auth-body {
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f8;
    height: 100vh;
    display: flex;
    overflow: hidden; /* Prevent scrolling on desktop */
}

/* Split Screen Layout */
.auth-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side (Branding/Image) */
.auth-sidebar {
    flex: 1;
    background: linear-gradient(rgba(0, 94, 162, 0.85), rgba(17, 46, 81, 0.95)), 
                url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1d/White_House_north_and_south_sides.jpg/1200px-White_House_north_and_south_sides.jpg') center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    position: relative;
}

.auth-sidebar h2 {
    font-family: Georgia, serif;
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
    z-index: 2;
}

.auth-sidebar p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    z-index: 2;
    max-width: 400px;
}

.auth-sidebar-logo {
    position: absolute;
    top: 40px;
    left: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.auth-sidebar-logo img {
    width: 50px;
}

.auth-sidebar-logo span {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
}

/* Right Side (Form) */
.auth-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    overflow-y: auto; /* Allow scrolling if form is long */
}

.auth-form-box {
    width: 100%;
    max-width: 450px;
}

.auth-form-box h1 {
    font-size: 28px;
    color: #1b1b1b;
    margin-bottom: 10px;
}

.auth-form-box .subtitle {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 15px;
}

.auth-form-box .subtitle a {
    color: #005ea2;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-box .subtitle a:hover {
    text-decoration: underline;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #334155;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #005ea2;
    box-shadow: 0 0 0 3px rgba(0, 94, 162, 0.15);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    user-select: none;
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 14px;
    background-color: #005ea2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-auth:hover {
    background-color: #004b85;
}

.btn-auth:active {
    transform: scale(0.98);
}

/* Utilities */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #005ea2;
}

.forgot-password {
    color: #005ea2;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Grid for Sign Up */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile & Tablets)
   ========================================= */
@media (max-width: 900px) {
    .auth-body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    
    .auth-container {
        flex-direction: column;
    }

    .auth-sidebar {
        padding: 40px 20px;
        min-height: 250px;
        flex: none;
        text-align: center;
        align-items: center;
    }

    .auth-sidebar-logo {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }

    .auth-sidebar h2 {
        font-size: 24px;
    }

    .auth-sidebar p {
        font-size: 15px;
    }

    .auth-form-wrapper {
        padding: 30px 20px;
        flex: 1;
    }

    .auth-form-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}