/* ===========================
   AUTH PAGES — CONSOLIDATED
   =========================== */

.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('/images/img.png') no-repeat center center/cover;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    color: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.auth-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
}

/* LEFT SIDE (DESKTOP) */
.auth-left {
    width: 50%;
    max-width: 480px;
}

.auth-left h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-left p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* RIGHT SIDE (FORM CARD) */
.auth-right {
    width: 45%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.85);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-right h2 { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.8rem; }

.auth-right label {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.auth-right input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #f4f1ea;
    font-size: 16px; /* Universal mobile zoom fix */
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-right input:focus {
    outline: none;
    border-color: #00b4d8;
}

/* CHECKBOX GROUP FIX */
.group-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1rem 0 1.5rem 0;
}

.group-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0; /* Reset label margin for checkboxes */
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
}

.group-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00b4d8;
    flex-shrink: 0;
}

/* PASSWORD TOGGLE */
.password-wrapper { position: relative; width: 100%; }
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 5;
}

/* BUTTONS & LINKS */
.auth-right button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    background: #00b4d8;
    color: #0b1120;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.auth-right button:hover {
    background: #0096b4;
    transform: translateY(-2px);
}

.error { color: #fecaca; background: rgba(127, 29, 29, 0.35); padding: 0.75rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.85rem; }

.auth-switch { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #94a3b8; }
.auth-switch a { color: #00b4d8; text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ===========================
   UNIVERSAL MOBILE RESPONSIVE
   =========================== */
@media (max-width: 850px) {
    .auth-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: 100dvh;
        padding: 2rem 1rem;
    }

    .auth-left {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .auth-left h1 { font-size: 2.2rem; }
    .auth-left p { font-size: 1rem; }

    .auth-right {
        width: 100%;
        max-width: 400px;
        padding: 1.8rem;
    }
}

@media (max-width: 480px) {
    .auth-right h2 { font-size: 1.5rem; }
    .auth-right { padding: 1.5rem; }

    /* Ensure the browser zoom fix is strictly enforced */
    input { font-size: 16px !important; }
}