﻿/* ALTURA CONSISTENTE DEL FORMULARIO */
body.login-bg .form-step {
    min-height: 320px;
    display: none;
    flex-direction: column;
}

    body.login-bg .form-step.active {
        display: flex;
    }

/* CONTENIDO DEL STEP */
body.login-bg .step-content {
    flex: 1;
}

/* BOTONES ABAJO */
body.login-bg .step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

/*LABEL CON ASTERISCO ROJO*/
label.required::after {
    content: " *";
    color: #ff4d4d;
    font-weight: bold;
}

strong.rojo {
    color: #ff4d4d;
}

/* ERROR - ROJO (ASP.NET + jQuery) */
input.input-validation-error,
select.input-validation-error,
input.error,
select.error {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 0.15rem rgba(255, 77, 77, 0.25);
}

/* CORRECTO - VERDE */
input.valid,
select.valid {
    border-color: #7CFC00;
    box-shadow: 0 0 0 0.15rem rgba(124, 252, 0, 0.25);
}

.form-select:valid,
.form-select:invalid {
    background-repeat: no-repeat !important;
}

.was-validated .form-select:valid,
.was-validated .form-select:invalid {
}

.btn-success:hover {
    color: black;
}

/* WIZARD */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

    .wizard-progress .step {
        width: 100%;
        text-align: center;
        padding: 10px;
        border-bottom: 3px solid #ddd;
        color: #999;
        font-size: 14px;
    }

        .wizard-progress .step.active {
            border-color: #198754;
            color: #198754;
            font-weight: bold;
        }

.text-between {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* ============================================ */
/* ESTILOS EXCLUSIVOS PARA EL FORMULARIO */
/* ============================================ */

body.login-bg .container.mt-3,
body.login-bg .row.justify-content-center,
body.login-bg .col-md-10 {
    background-color: transparent !important;
}

body.login-bg .card {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

body.login-bg .card-header {
    border-bottom: 2px solid #0d6efd !important;
    padding: 1.5rem 1rem !important;
}

    body.login-bg .card-header h4 {
        color: #0a58ca !important;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    body.login-bg .card-header small.text-muted {
        color: #495057 !important;
        opacity: 1;
        font-size: 0.85rem;
    }

body.login-bg .card-body {
    padding: 2rem !important;
    min-height: 540px;
    display: flex;
    flex-direction: column;
}

body.login-bg .alert.alert-info {
    background-color: #e7f1ff !important;
    color: #0a58ca !important;
    border-color: #b6d4fe !important;
    border-radius: 8px;
    font-size: 0.9rem;
}

body.login-bg h6.text-primary {
    color: #0a58ca !important;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

body.login-bg .form-label {
    color: #212529 !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

body.login-bg .form-control,
body.login-bg .form-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

    body.login-bg .form-control:focus,
    body.login-bg .form-select:focus {
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    }

    body.login-bg .form-control::placeholder {
        color: #adb5bd !important;
        opacity: 1;
        font-size: 0.9rem;
    }

body.login-bg .wizard-progress {
    background-color: transparent;
    margin: 30px 0;
    padding: 0 10px;
}

    body.login-bg .wizard-progress .step {
        color: #6c757d !important;
        font-weight: 500;
        border-bottom: 3px solid #dee2e6;
        transition: all 0.3s ease;
    }

        body.login-bg .wizard-progress .step.active {
            border-color: #198754 !important;
            color: #198754 !important;
            font-weight: 700;
        }

            body.login-bg .wizard-progress .step.active::after {
                content: "✓";
                display: block;
                font-size: 12px;
                margin-top: 2px;
            }

        body.login-bg .wizard-progress .step small {
            color: inherit !important;
            font-size: 0.8rem;
            text-transform: uppercase;
        }

body.login-bg .btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    padding: 0.6rem 2rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

    body.login-bg .btn-primary:hover {
        background-color: #0b5ed7 !important;
        border-color: #0a58ca !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    }

body.login-bg .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    padding: 0.6rem 2rem;
    font-weight: 500;
    border-radius: 6px;
}

body.login-bg .btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
    padding: 0.6rem 2rem;
    font-weight: 500;
    border-radius: 6px;
}

body.login-bg input.valid,
body.login-bg select.valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.25) !important;
}

body.login-bg input.input-validation-error,
body.login-bg select.input-validation-error,
body.login-bg input.error,
body.login-bg select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25) !important;
}

body.login-bg #divProfesionOtra {
    background-color: #ffffff !important;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

body.login-bg hr {
    border-color: #dee2e6 !important;
    opacity: 0.5;
}

@media (max-width: 768px) {

    body.login-bg .card {
        margin: 10px;
    }

    body.login-bg .card-body {
        padding: 1rem !important;
    }
}



/* ============================================ */
/* BARRA DE PROGRESO REAL DEL WIZARD */
/* ============================================ */

.progress-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-animated {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    background: linear-gradient(90deg,#0d6efd,#198754);
    transition: width .6s ease;
}

/* animación de brillo */
.progress-bar-animated::after {
    content: "";
    display: block;
    height: 100%;
    width: 40%;
    background: rgba(255,255,255,.35);
    animation: progressGlow 2s linear infinite;
}

@keyframes progressGlow {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(300%);
    }
}

.progress-text {
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}


/*BTN REGISTRAR USUARIO*/
.btn-register {
    background-color: #198754;
    border-color: #198754;
    color: white;
    font-weight: 600;
}

.btn-register:hover {
    background-color: #157347;
    border-color: #146c43;
    color: white;
    font-weight: 600;
}


/* MENSAJES DE VALIDACIÓN */
body.login-bg .text-danger,
body.login-bg .field-validation-error {
    color: #dc3545 !important;
    font-size: 0.85rem;
}