/* =====================================================
   Estilos para las páginas de Login y Registro
   ===================================================== */

/* Fondo de la página de autenticación */
.auth-body {
    background: linear-gradient(135deg, #2C3E50 0%, #18BC9C 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Contenedor centrado */
.auth-wrapper {
    width: 100%;
    max-width: 430px;
}

/* Para el registro, un poco más ancho */
.auth-wrapper-registro {
    max-width: 540px;
}

/* Tarjeta principal */
.auth-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

/* Encabezado de la tarjeta (fondo degradado) */
.auth-header {
    background: linear-gradient(135deg, #2C3E50 0%, #18BC9C 100%);
    padding: 2rem 1.5rem 1.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

/* Footer de la tarjeta */
.auth-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Inputs con foco estilizado */
.auth-card .form-control:focus {
    border-color: #18BC9C;
    box-shadow: 0 0 0 0.2rem rgba(24, 188, 156, 0.25);
}

/* Botón principal */
.auth-card .btn-primary {
    background-color: #2C3E50;
    border-color: #2C3E50;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.auth-card .btn-primary:hover {
    background-color: #18BC9C;
    border-color: #18BC9C;
    transform: translateY(-1px);
}

/* Labels */
.auth-card .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

/* Texto auxiliar de campos */
.auth-card .form-text {
    font-size: 0.78rem;
}

/* Animación de entrada de la tarjeta */
.auth-card {
    animation: deslizarArriba 0.4s ease;
}

@keyframes deslizarArriba {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Separador */
.auth-card hr {
    border-color: #dee2e6;
    opacity: 0.6;
}

/* Link de switch login/registro */
.auth-card a.fw-semibold {
    text-decoration: none;
}

.auth-card a.fw-semibold:hover {
    text-decoration: underline;
}

.portal-choice-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.portal-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(24, 188, 156, 0.1);
}

.entidad-list {
    border-radius: 0.75rem;
    overflow: hidden;
}

.entidad-item {
    border-left: none;
    border-right: none;
}

.entidad-item:first-child {
    border-top: none;
}

.entidad-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: #2C3E50;
}

/* Responsivo */
@media (max-width: 575px) {
    .auth-header {
        padding: 1.5rem 1rem 1rem;
    }

    .auth-card .card-body {
        padding: 1.25rem !important;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
    }
}
