﻿/* ========================================
   IMPORTAR ESTILOS BASE DEL LOGIN
======================================== */
/* Este archivo comparte variables con Login.css */

/* ========================================
   CARD DE REGISTRO (MÁS GRANDE)
======================================== */
.registro-card {
    max-width: 650px !important;
    padding: 2.5rem 3rem !important;
}

/* ========================================
   PROGRESS STEPS
======================================== */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--empresa-primary), var(--empresa-accent));
    color: white;
    border-color: rgba(0, 102, 204, 0.2);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    animation: pulse-step 2s infinite;
}

@keyframes pulse-step {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    }
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.step.active .step-label {
    color: var(--empresa-primary);
}

.step-line {
    width: 60px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 0.5rem;
    position: relative;
    top: -10px;
}

/* ========================================
   SECCIONES DEL FORMULARIO
======================================== */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

    .form-section:last-of-type {
        border-bottom: none;
    }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

    .section-title i {
        color: var(--empresa-primary);
        font-size: 1.2rem;
    }

/* ========================================
   FORM TEXT HELPER
======================================== */
.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   PASSWORD STRENGTH INDICATOR
======================================== */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

    .strength-fill.weak {
        width: 33%;
        background: var(--empresa-danger);
    }

    .strength-fill.medium {
        width: 66%;
        background: var(--empresa-warning);
    }

    .strength-fill.strong {
        width: 100%;
        background: var(--empresa-success);
    }

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

    .strength-text.weak {
        color: var(--empresa-danger);
    }

    .strength-text.medium {
        color: var(--empresa-warning);
    }

    .strength-text.strong {
        color: var(--empresa-success);
    }

/* ========================================
   PASSWORD MATCH INDICATOR
======================================== */
.password-match {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

    .password-match.show {
        display: flex;
    }

    .password-match.match {
        background: rgba(40, 167, 69, 0.1);
        color: var(--empresa-success);
    }

    .password-match.no-match {
        background: rgba(220, 53, 69, 0.1);
        color: var(--empresa-danger);
    }

    .password-match i {
        font-size: 1rem;
    }

/* ========================================
   CHECKBOX PERSONALIZADO
======================================== */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

    .checkbox-container input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 22px;
    width: 22px;
    background-color: #f0f0f0;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    background-color: #e8e8e8;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--empresa-primary), var(--empresa-accent));
    border-color: var(--empresa-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    display: block;
}

    .checkbox-label a {
        color: var(--empresa-primary);
        text-decoration: none;
        font-weight: 600;
    }

        .checkbox-label a:hover {
            text-decoration: underline;
        }

/* ========================================
   BOTÓN DE REGISTRO
======================================== */
#btnRegistro {
    font-size: 1.05rem;
    padding: 1.1rem;
}

    #btnRegistro:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ========================================
   RESPONSIVE - REGISTRO
======================================== */
@media (max-width: 768px) {
    .registro-card {
        padding: 2rem 1.5rem !important;
        max-width: 100% !important;
    }

    .section-title {
        font-size: 1rem;
    }

    .progress-steps {
        padding: 1rem 0;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-line {
        width: 40px;
    }

    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .registro-card {
        padding: 1.5rem 1rem !important;
    }

    .step-label {
        display: none;
    }

    .step-line {
        width: 30px;
    }

    .checkbox-container {
        font-size: 0.85rem;
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
======================================== */
.form-section {
    animation: fadeInSection 0.5s ease;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay en animaciones de secciones */
.form-section:nth-child(1) {
    animation-delay: 0.1s;
}

.form-section:nth-child(2) {
    animation-delay: 0.2s;
}

.form-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* ========================================
   ESTADOS DE FOCUS MEJORADOS
======================================== */
.form-control:focus {
    transform: translateY(-1px);
}

.form-group:has(.form-control:focus) .form-label {
    color: var(--empresa-primary);
}

    .form-group:has(.form-control:focus) .form-label i {
        transform: scale(1.1);
    }

/* ========================================
   SECCIÓN DE REENVÍO DE VERIFICACIÓN
======================================== */
.verification-section {
    margin: 2rem 0;
}

.verification-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed var(--empresa-primary);
}

.verification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--empresa-primary), var(--empresa-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.verification-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.verification-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.verification-card .input-group {
    max-width: 400px;
    margin: 0 auto;
}

    .verification-card .input-group .form-control {
        border-radius: 8px 0 0 8px;
    }

    .verification-card .input-group .btn {
        border-radius: 0 8px 8px 0;
        padding: 0.625rem 1.5rem;
    }

/* Responsive */
@media (max-width: 576px) {
    .verification-card {
        padding: 1.5rem;
    }

        .verification-card .input-group {
            flex-direction: column;
        }

            .verification-card .input-group .form-control,
            .verification-card .input-group .btn {
                border-radius: 8px;
                width: 100%;
            }

            .verification-card .input-group .btn {
                margin-top: 0.5rem;
            }
}

