/* =====================================================
   auth.css — Layout de autenticación
   ===================================================== */
:root {
    --auth-primary: #4361ee;
    --auth-accent:  #7209b7;
}

body {
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.auth-card {
    border: none;
    border-radius: 1.25rem;
    background-color: #ffffff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .55);
}

.auth-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(67, 97, 238, .4);
}

.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .25rem;
}

.auth-subtitle {
    font-size: .875rem;
    color: #475569;
}

.auth-body {
    padding: 1.5rem 2rem 2rem;
}

.btn-login {
    padding: .75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    border: none;
    transition: opacity .2s, transform .1s;
}

.btn-login:hover  { opacity: .92; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.auth-footer {
    padding: 1rem 2rem;
    text-align: center;
    color: #64748b;
    font-size: .8rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 0 0 1.25rem 1.25rem;
}

/* ── Animación de entrada ──────────────────────────── */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card {
    animation: cardEntrance .55s cubic-bezier(.22,.68,0,1.2) .35s both;
}

/* Input groups */
.auth-body .input-group-text {
    background: #f8fafc;
    border-right: none;
    color: #94a3b8;
}
.auth-body .form-control {
    border-left: none;
}
.auth-body .form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(67,97,238,.2);
}
