/* ==========================================================================
LOGIN.CSS - Página de Inicio de Sesión DNBLP
Versión: 1.0 (Solo estilos específicos, variables vienen de 01-layout.css)
========================================================================== */

/* ==========================================================================
WRAPPER CON GRADIENTE INSTITUCIONAL
========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--dnblp-teal) 0%,
        var(--dnblp-cyan) 50%,
        var(--dnblp-sage) 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

/* ==========================================================================
LOGO INSTITUCIONAL
========================================================================== */
.branding-header {
    text-align: center;
    margin-bottom: 30px;
}

.dnblp-logo {
    max-width: 280px;
    height: auto;
    display: inline-block;
    mix-blend-mode: multiply;
}

/* ==========================================================================
TARJETA DE LOGIN
========================================================================== */
.auth-card {
    background: #ffffff;
    width: 100%;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeInModal 0.3s ease-out;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 6px 0;
}

.auth-card .auth-description {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ==========================================================================
CAMPOS DEL FORMULARIO
========================================================================== */
.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--dnblp-teal);
    box-shadow: 0 0 0 3px rgba(10, 102, 119, 0.15);
}

/* ==========================================================================
OPCIONES Y ENLACES
========================================================================== */
.auth-options {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0 22px 0;
    font-size: 12px;
}

.auth-options a {
    color: var(--dnblp-teal);
    text-decoration: none;
}

.auth-options a:hover {
    text-decoration: underline;
}

/* ==========================================================================
BOTÓN DE INGRESO
========================================================================== */
.btn-auth {
    width: 100%;
    padding: 11px 16px;
    background: var(--dnblp-teal);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}

.btn-auth:hover {
    background: var(--accent-hover);
}

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

/* ==========================================================================
FOOTER DE LA TARJETA
========================================================================== */
.auth-footer-link {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-500);
}

.auth-footer-link a {
    color: var(--dnblp-teal);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* ==========================================================================
ALERTAS
========================================================================== */
.alert {
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: var(--error-light);
    border-left-color: var(--error);
    color: var(--error-dark);
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: #16a34a;
    color: #14532d;
}

.alert-icon {
    font-size: 14px;
}

/* ==========================================================================
FOOTER INFERIOR
========================================================================== */
.auth-bottom-footer {
    text-align: center;
    margin-top: 20px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 500;
}

/* ==========================================================================
RESPONSIVE
========================================================================== */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }

    .dnblp-logo {
        max-width: 220px;
    }

    .auth-card h2 {
        font-size: 20px;
    }

    .auth-bottom-footer {
        font-size: 10px;
        padding: 12px 15px;
    }
}
