/* ============================================================
   SG+ · auth.css
   Estilos compartidos entre login.html y reset_password.html.
   ============================================================ */

:root {
    --auth-p:      #0d2a4a;
    --auth-pd:     #061b31;
    --auth-acc:    #f39200;
    --auth-bg:     #8a8686;
    --auth-border: #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* ── Campos de formulario ── */
.form-control {
    padding: 0.68rem 1rem;
    border-radius: 0.65rem;
    border: 1.5px solid var(--auth-border);
    background-color: #f8fafc;
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.14);
    border-color: var(--auth-acc);
    background-color: #fff;
    outline: none;
}

.form-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

/* ── Checkbox ── */
.form-check-input:checked {
    background-color: var(--auth-p);
    border-color: var(--auth-p);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 42, 74, 0.12);
}

/* ── Logo box (ícono de la app) ── */
.auth-logo-box {
    background: linear-gradient(145deg, #ffb31a, #f39200);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #10243b;
    box-shadow: 0 8px 22px rgba(243, 146, 0, 0.3);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ── Botón principal de auth ── */
.btn-auth {
    background: linear-gradient(135deg, #0d2a4a 0%, #163d68 100%);
    border: none;
    padding: 0.78rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.22s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #082844 0%, #0d2a4a 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 42, 74, 0.28);
    color: white;
}

.btn-auth:active  { transform: translateY(0); }

.btn-auth:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Links ── */
.auth-link {
    font-size: 0.76rem;
    color: var(--auth-acc);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: #d97706;
    text-decoration: underline;
}

/* ── Toggle de contraseña ── */
.pw-toggle { position: relative; }

.pw-toggle .toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.85rem;
}

.pw-toggle .toggle-eye:hover { color: var(--auth-acc); }

/* ── Alert dentro de modal ── */
.auth-alert {
    font-size: 0.82rem;
    border-radius: 0.65rem;
}

/* ── Modal de auth ── */
.auth-modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(13, 42, 74, 0.18);
}

.auth-modal-title {
    color: #0d2a4a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-modal-title i { color: #f39200; }
