/**
 * ═══════════════════════════════════════════════════════════════
 * MODULE: login.css — v1.0
 * PAGE: login.php — Auth Login Card
 * PREFIX: login- (no inline JS, scoped overrides only)
 * ISOLATION: Full-Stack (Regra 34)
 * CREATED: Audit 2026-04-01 — Responsiveness Pass
 * ═══════════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────────────────────
   PASSWORD TOGGLE TOUCH TARGET
   The #togglePassword <i> icon is tiny by default (~16px).
   Expand its hit area to 44×44px on touch devices via
   padding + negative margin trick (no layout shift).
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .auth-card .input-group i#togglePassword {
        /* Expand clickable area to 44×44px without shifting layout */
        padding: 14px;
        margin: -14px;
        /* compensate the padding so the visual position stays at right:15px */
        right: 1px;
        /* adjusted: 15px − 14px padding = 1px visual right */
    }
}

/* ─────────────────────────────────────────────────────────────
   FORGOT PASSWORD MODAL — MOBILE FIT
   The forgot-pw modal div uses inline styles (max-width:420px,
   width:100%). On 320px viewport, 420px max-width is fine but
   padding 28px × 2 = 56px. Overriding padding for small screens.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Overlay: remove side padding so modal fills screen width */
    #forgot-pw-overlay {
        padding: 12px !important;
    }
}

@media (max-width: 375px) {
    #forgot-pw-overlay {
        padding: 8px !important;
        align-items: flex-end !important;
    }

    /* Reduce modal padding on very small screens */
    #forgot-pw-overlay > div {
        padding: 20px 16px !important;
        border-radius: 16px 16px 0 0 !important;
    }
}
