/* Extracted from signup.html */

/* Global overrides for the auth pages */
    .navbar, header {
        display: none !important;
    }

    .content-wrapper {
        margin-top: 0 !important;
        margin-left: 0 !important;
        /* Force center by removing sidebar margin */
        padding: 0 !important;
        background-color: #a3cae9;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        padding-top: 0 !important; /* Remove any top padding */
    }

    .form-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1000;
        background-color: #a3cae9;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1.5rem;
        box-sizing: border-box;
        overflow-y: auto;
    }

    body {
        background-color: #a3cae9;
        font-family: 'Inter', sans-serif;
    }

/* ── Signup-only layout overrides (wider card, compact form) ── */
.form-section .login-redesign-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.form-section .login-redesign-left {
    flex: 0.6;
    padding: 2rem;
}

.form-section .login-redesign-logo {
    width: 200px;
    margin-bottom: 1rem;
}

.form-section .login-redesign-right {
    flex: 2;
}

.form-section .login-redesign-right .auth-group {
    margin-bottom: 0.75rem;
}

.form-section .login-redesign-right .input-wrapper input {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ── Responsive Grid Rows ── */
.signup-grid-row {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.name-row {
    grid-template-columns: 2fr 0.7fr 2fr 0.7fr;
}

.contact-row {
    grid-template-columns: 1fr 1fr;
}

.id-row {
    grid-template-columns: 1fr 1fr;
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 768px) {
    .form-section {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding: 1rem;
    }

    .form-section .login-redesign-container {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .form-section .login-redesign-left {
        display: none; /* Hide branding on small screens to save space */
    }

    .form-section .login-redesign-right {
        padding: 1.5rem !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Stack all grid rows on mobile */
    .name-row, .contact-row, .id-row {
        grid-template-columns: 1fr;
    }

    /* Keep M.I. and Suffix side-by-side or grouped if needed, 
       but for simplicity, stacking is safest for very small screens. 
       Let's try a better layout for names on mobile. */
    .name-row {
        grid-template-columns: 1fr 1fr;
    }
    .name-row .auth-group:nth-child(1),
    .name-row .auth-group:nth-child(3) {
        grid-column: span 2;
    }

    /* Face Selfie section responsiveness */
    #camera-modal .camera-container {
        width: 100% !important;
        max-width: 340px;
        height: auto !important;
        aspect-ratio: 340/420;
    }
    #webcam-video {
        width: 100% !important;
        height: auto !important;
    }
}

