/* ========================================
   MODERN REGISTER WIZARD
   Clean, minimal design matching auth layout
   ======================================== */

/* Container */
.register-wizard {
    max-width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Indicators */
.wizard-steps {
    position: relative;
    margin: 0 auto 2.5rem;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    border: none;
    background: none;
}

.wizard-steps::before,
.wizard-steps::after {
    display: none !important;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 90px;
    line-height: 1.3;
}

.step-item.active .step-circle {
    background: #fff;
    border-color: #fff;
    color: #964e98;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.step-item.active .step-label {
    color: #fff;
    font-weight: 700;
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: transparent;
    font-size: 0;
}

.step-item.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.step-item.completed .step-label {
    color: rgba(255, 255, 255, 0.9);
}

.step-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    min-width: 40px;
    max-width: 60px;
    margin: 0 15px;
    align-self: flex-start;
    margin-top: 24px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.step-line.completed {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

/* Form Content */
.wizard-content {
    min-height: 280px;
    position: relative;
}

.wizard-step {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.wizard-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Controls - Matching login style */
.register-wizard .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.register-wizard .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #0d0d0d;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
}

.register-wizard .form-control:focus {
    background: #fff;
    border-color: #964e98;
    box-shadow: 0 0 0 0.2rem rgba(150, 78, 152, 0.25);
    outline: none;
}

.register-wizard .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.register-wizard small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Password Toggle Button */
.register-wizard .btn-link {
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    color: #6c757d;
}

.register-wizard .btn-link:hover i {
    color: #964e98 !important;
}

/* Summary Card */
.summary-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.summary-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Checkbox */
.register-wizard .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 18px;
    height: 18px;
}

.register-wizard .form-check-input:checked {
    background-color: #964e98;
    border-color: #964e98;
}

.register-wizard .form-check-input:focus {
    border-color: #964e98;
    box-shadow: 0 0 0 0.2rem rgba(150, 78, 152, 0.25);
}

.register-wizard .form-check-label a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.register-wizard .form-check-label a:hover {
    color: #fff;
}

/* Navigation Buttons */
.wizard-navigation .btn-outline-light {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wizard-navigation .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.wizard-navigation .btn-light {
    background: #fff;
    color: #964e98;
    border: none;
    padding: 12px 32px;
    transition: all 0.3s ease;
}

.wizard-navigation .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wizard-navigation .btn-light:active {
    transform: translateY(0);
}

/* Login Link */
.register-wizard a[href="/login"] {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.register-wizard a[href="/login"]:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-steps {
        gap: 0;
    }
    
    .step-circle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .step-label {
        font-size: 11px;
        max-width: 70px;
    }
    
    .step-line {
        min-width: 25px;
        max-width: 40px;
        width: 40px;
        margin: 0 8px;
        margin-top: 21px;
    }
}

@media (max-width: 575.98px) {
    .wizard-steps {
        gap: 0;
        padding: 0 5px;
    }
    
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-width: 2px;
    }
    
    .step-item.active .step-circle {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    }
    
    .step-label {
        font-size: 9px;
        max-width: 55px;
        line-height: 1.2;
    }
    
    .step-line {
        min-width: 15px;
        max-width: 20px;
        width: 20px;
        margin: 0 5px;
        margin-top: 18px;
        height: 2px;
    }
    
    .step-item.completed .step-circle::after {
        font-size: 18px;
        color: #fff;
    }
    
    .wizard-content {
        min-height: 320px;
    }
    
    .register-wizard .form-control {
        font-size: 14px;
    }
    
    .wizard-navigation .btn-light {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Invalid Feedback */
.register-wizard .invalid-feedback {
    color: rgba(255, 107, 107, 1);
    font-size: 13px;
    display: none;
}

.register-wizard .invalid-feedback.d-block,
.register-wizard .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Valid Feedback */
.register-wizard .valid-feedback {
    color: #28a745;
    font-size: 13px;
    display: none;
}

/* Solo mostrar valid-feedback cuando tengamos control manual */
.register-wizard .form-control.is-valid ~ .valid-feedback:not(#confirmPasswordValidFeedback) {
    display: block;
}

/* Control manual para confirmPasswordValidFeedback */
.register-wizard #confirmPasswordValidFeedback {
    display: none !important;
}

/* Permitir que JavaScript muestre el mensaje cuando sea necesario */
.register-wizard #confirmPasswordValidFeedback.d-block {
    display: block !important;
}

.register-wizard .form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.register-wizard .form-control.is-invalid {
    border-color: rgba(255, 107, 107, 1);
    background-image: none;
}

/* Password Requirements Indicators */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.requirement-item i {
    font-size: 6px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.requirement-item.valid {
    color: #28a745;
}

.requirement-item.valid i {
    color: #28a745;
    transform: scale(1.2);
}

.requirement-item.invalid {
    color: rgba(255, 107, 107, 0.8);
}

.requirement-item.invalid i {
    color: rgba(255, 107, 107, 0.8);
}

