﻿/* Icono de registro */
.icono-registro {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Card principal */
.card {
    border-radius: 20px;
    overflow: hidden;
}

/* Secciones del formulario */
.seccion-formulario {
    position: relative;
}

.titulo-seccion {
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Form floating */
.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 1rem 0.75rem;
}

/* Corrección específica para select en form-floating */
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    line-height: 1.25;
}

    .form-floating > .form-select:focus ~ label,
    .form-floating > .form-select:not(:placeholder-shown) ~ label {
        opacity: 0.65;
        transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    }

    .form-floating > .form-select ~ label {
        padding: 1rem 0.75rem;
    }

    /* Asegurar que el texto seleccionado no se superponga */
    .form-floating > .form-select option {
        color: #212529;
    }

    .form-floating > .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    }

    .form-floating > .form-control:focus,
    .form-floating > .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
        transform: translateY(-2px);
    }

.form-floating > label {
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 0.75rem;
}

/* Indicador de fuerza de contraseña */
.indicador-fuerza {
    margin-top: 0.5rem;
}

.barra-fuerza {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.relleno-fuerza {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

    .relleno-fuerza.debil {
        background-color: #dc3545;
        width: 25%;
    }

    .relleno-fuerza.regular {
        background-color: #fd7e14;
        width: 50%;
    }

    .relleno-fuerza.buena {
        background-color: #ffc107;
        width: 75%;
    }

    .relleno-fuerza.fuerte {
        background-color: #198754;
        width: 100%;
    }

.texto-fuerza {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Botones */
.btn {
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }

/* Checkbox personalizado */
.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-check-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Validación */
.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-floating .is-invalid {
    border-color: #dc3545;
}

.form-floating .is-valid {
    border-color: #198754;
}

/* Estados de carga */
.cargando {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive */
@@media (max-width: 768px) {
    .card-body {
        padding: 2rem !important;
    }

    .icono-registro {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animaciones */
.seccion-formulario {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
