/* ============================================
   AUTH.CSS — Login ArapaimaTech
   ============================================ */

/* ── Reset mínimo ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ── Fondo corporativo con imagen ── */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;

    background-image: url('../images/fondocorporativoarapaima.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ── Wrapper centrador ── */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ── Card principal ── */
.auth-card {
    background: rgba(134, 165, 245, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 1.25rem;
    padding: 0.1rem 2rem 2rem 2rem;
    color: #000000;
    width: 100%;
    max-width: 352px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Logo ── */
.auth-logo {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #000000;
}

.auth-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: -4.3rem;
    filter: drop-shadow(0 0 12px rgba(99, 179, 237, 0.4));
}

.auth-brand {
    color: #4c1fb6;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Color de texto en inputs ── */
.auth-card input {
    color: #000000;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(100, 116, 139, 0.4);
}

/* ── Placeholder (texto de ayuda) ── */
.auth-card input::placeholder {
    color: #64748b;
    opacity: 1;
}

/* ── Al hacer foco en el input ── */
.auth-card input:focus {
    color: #0f172a;
    background: rgba(255, 255, 255, 1);
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* ── Campos del formulario ── */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.auth-input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgb(252, 252, 252);
    border: 1px solid rgba(253, 250, 250, 0);
    border-radius: 0.6rem;
    color: #000000;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-input::placeholder {
    color: rgb(255, 255, 255);
}

.auth-input:focus {
    border-color: #72a0e9;
    box-shadow: 0 0 0 3px rgba(139, 178, 240, 0.78);
    background: rgba(56, 162, 233, 0.84);
}

/* ─────────────────────────────────────────────
   👁️  TOGGLE CONTRASEÑA — Wrapper + Botón
   ───────────────────────────────────────────── */

/* Wrapper: posiciona el ojo dentro del input */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* El input ocupa todo el ancho y deja espacio al ojo */
.auth-input-wrapper .auth-input {
    width: 100%;
    padding-right: 2.8rem;
}

/* Botón del ojo */
.auth-toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(30, 30, 30, 0.55);     /* Oscuro sutil sobre card azul clara */
    font-size: 1.05rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-toggle-password:hover {
    color: #1d4ed8;                    /* Azul corporativo al hacer hover */
    transform: scale(1.15);
}

.auth-toggle-password:focus {
    outline: none;                     /* tabindex="-1" ya lo excluye del tab */
}

/* ── Botón submit ── */
.auth-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.auth-btn:active {
    transform: scale(0.98);
}

/* ── Alertas flash ── */
.auth-alert {
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.auth-alert--error,
.auth-alert--danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.auth-alert--success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.auth-alert--warning {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fde047;
}

/* ── Pie de página ── */
.auth-hint {
    text-align: center;
    color: #000000;
    font-size: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.auth-field--checkbox {
    margin-top: 0.25rem;
}

.auth-remember {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #1a1a1a;
    cursor: pointer;
}

.auth-remember input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.auth-hint--inline {
    display: block;
    margin-top: 0.35rem;
    text-align: left;
    font-size: 0.72rem;
    opacity: 0.85;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 1rem;
    }

    .auth-brand {
        font-size: 1.2rem;
    }

    /* El ojo se mantiene bien posicionado en móvil */
    .auth-toggle-password {
        right: 0.6rem;
        font-size: 0.95rem;
    }
}

/* Cloudflare Turnstile */
.auth-turnstile {
    display: flex;
    justify-content: center;
    margin: 1rem 0 0.5rem;
    min-height: 65px;
}