/* =========================================================================
 * ESTILOS PARA EL MODAL INDEPENDIENTE DE ACCESO DE FAMILIA BUDI
 * ========================================================================= */

/* --- Contenedor Principal del Modal --- */
.modal--familia-access .modal__content {
    max-width: 450px;
    background: #1f2937; /* Fondo oscuro consistente */
    color: #e5e7eb;
    border: 2px solid #0d6efd; /* Borde Azul para diferenciarlo */
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.5);
    padding: clamp(20px, 4vh, 30px);
}

/* --- Botón de Cierre --- */
.modal--familia-access .budi-modal-close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2.5rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease;
}
.modal--familia-access .budi-modal-close-btn:hover {
    color: #fff;
}

/* --- Títulos y Vistas --- */
.familia-access-view .form-col-title {
    text-align: center;
    color: #a78bfa; /* Color lavanda de los otros modales */
    font-size: clamp(1.2rem, 3vh, 1.5rem);
    margin: 0 0 25px 0;
    font-weight: bold;
}

/* --- Estilos de Formulario (Reutilizados de modal-register.css para consistencia) --- */
.modal--familia-access .budi-auth-form .form-group {
    position: relative;
    margin-bottom: 15px;
}

.modal--familia-access .budi-auth-form input[type="text"],
.modal--familia-access .budi-auth-form input[type="email"],
.modal--familia-access .budi-auth-form input[type="password"] {
    width: 100%;
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    padding: 12px 15px;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

.modal--familia-access .budi-auth-form input:focus {
    outline: none;
    border-color: #0d6efd; /* Borde Azul al enfocar */
}

.modal--familia-access .budi-auth-form input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.modal--familia-access .form-group-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.modal--familia-access .form-group-terms input[type="checkbox"] {
    width: auto;
}

.modal--familia-access .form-group-terms label {
    font-size: 0.8em;
    color: #d1d5db;
}

.modal--familia-access .form-group-terms label a {
    color: #a78bfa;
}

.modal--familia-access .form-footer {
    margin-top: 20px;
    text-align: center;
}

.modal--familia-access .form-footer .btn {
    width: 100%;
    font-size: 1.1em;
}

.modal--familia-access .switch-form-text {
    margin-top: 15px;
    font-size: 0.8em;
    color: #9ca3af;
}

.modal--familia-access .btn-text-switch {
    background: none;
    border: none;
    color: #a78bfa;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.modal--familia-access .form-feedback {
    background-color: #ef4444;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9em;
    text-align: center;
}

.modal--familia-access .form-feedback.success {
    background-color: #22c55e;
}