/* ==========================================================================
REGISTRO.CSS - Página de Solicitud de Acceso 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: 640px;
}

/* ==========================================================================
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 REGISTRO
========================================================================== */
.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--registro {
    padding: 32px 28px;
}

.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;
    line-height: 1.6;
}

.auth-card .auth-description strong {
    color: var(--dnblp-dorado);
    font-weight: 700;
}

/* ==========================================================================
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,
.auth-field textarea {
    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,
.auth-field textarea:focus {
    outline: none;
    border-color: var(--dnblp-teal);
    box-shadow: 0 0 0 3px rgba(10, 102, 119, 0.15);
}

.auth-field textarea {
    resize: vertical;
    min-height: 80px;
}

.auth-field .font-mono {
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* ==========================================================================
HINTS DE CAMPOS
========================================================================== */
.auth-field-hint {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
}

/* ==========================================================================
BOTÓN DE ENVÍO
========================================================================== */
.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;
}


/* Filas de dos columnas (nombre1/nombre2, apellido1/apellido2) */
.auth-row {
    display: flex;
    gap: 12px;
}
.auth-row .auth-field {
    flex: 1;
}

/* Títulos de sección dentro del formulario */
.auth-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #527c9f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 18px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

/* Asterisco de campo obligatorio */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive: en móvil, las filas vuelven a una columna */
@media (max-width: 480px) {
    .auth-row {
        flex-direction: column;
        gap: 0;
    }
}




/* ==========================================================================
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;
    }

    .auth-card--registro {
        padding: 24px 20px;
    }

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

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

    .auth-field input,
    .auth-field textarea {
        padding: 9px 10px;
        font-size: 13px;
    }

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

@media (max-height: 700px) {
    .auth-card--registro {
        padding: 24px 20px;
    }

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

    .auth-card--registro .auth-description {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .auth-field {
        margin-bottom: 12px;
    }

    .auth-field label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .auth-field-hint {
        font-size: 10px;
    }
}
