/* REGISTER PAGE - UPDATED STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; min-height: 100vh; }

.auth-container { display: flex; height: 100vh; }

/* Sidebar with Image Card */
.auth-sidebar { 
    flex: 1; 
    background: 
                url('https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 40px; 
}

.image-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    color: rgb(1, 3, 21);
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Area */
.auth-form-wrapper { 
    flex: 1; display: flex; align-items: center; justify-content: center; background: #ffffff; padding: 20px;
    overflow-y: auto; /* Allows scrolling on small screens */
}
.auth-form { width: 100%; max-width: 400px; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.85rem; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; }

.btn-register { 
    width: 100%; padding: 15px; background: #2d5a27; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; margin-top: 10px;
}
/* Navigation Links Styling */
.top-back-btn {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.top-back-btn:hover {
    color: #081125;
}

.form-footer-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

.form-footer-text a {
    color: #2d5a27;
    font-weight: 600;
    text-decoration: none;
}

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

@media (max-width: 768px) { .auth-sidebar { display: none; } }
/* ==========================================
   MOBILE BREAKPOINTS ≤ 768px — AUTH PAGES
   ========================================== */
@media (max-width: 768px) {
    body { overflow: auto; height: auto; }

    .auth-container { flex-direction: column; height: auto; min-height: 100svh; }

    /* Sidebar hidden on mobile (as per existing rule) */
    .auth-sidebar { display: none; }

    /* Form wrapper: full width, natural scroll */
    .auth-form-wrapper {
        flex: none;
        width: 100%;
        min-height: 100svh;
        padding: 32px 20px;
        align-items: flex-start;
        overflow-y: visible;
    }

    .auth-form {
        width: 100%;
        max-width: 100%;
        padding-top: 10px;
    }

    .auth-form h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }

    .input-group input {
        font-size: 1rem;
        padding: 14px 12px;
    }

    .btn-register {
        padding: 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .top-back-btn { font-size: 0.9rem; margin-bottom: 16px; }
    .form-footer-text { font-size: 0.95rem; }
}

/* Add this to the bottom of register.css */

@media (max-width: 768px) {
    /* 1. Stack the sidebar and form vertically */
    .auth-container {
        flex-direction: column; /* Switches side-by-side to top-bottom */
        height: auto;           /* Removes fixed height to allow scrolling */
    }

    /* 2. Ensure sidebar stays visible but adjusts for mobile */
    .auth-sidebar {
        display: flex;          /* Ensures it is not hidden */
        width: 100%;            /* Forces full width */
        padding: 40px 20px;     /* Adjust padding for phone screens */
        order: -1;              /* Optional: Puts sidebar at the top */
    }

    /* 3. Adjust image card for mobile readability */
    .auth-sidebar .image-card {
        max-width: 100%;
        text-align: center;
    }

    /* 4. Ensure form wrapper stays full width */
    .auth-form-wrapper {
        width: 100%;
        padding: 40px 20px;
    }
}