/* LOGIN WIDGET - Estilos modernos */
.formulario-login {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-container {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto de partículas de fondo */
.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s infinite linear;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.form-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group select {
    width: 100%;
    color: #2d3748;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 204, 0, 0.778);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #474c52;
}

/* Estilos específicos para el captcha */
.captcha-group {
    text-align: center;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

ol.captcha-piezas li {
    background-color: #2d3748;
}

.imagen-captcha {
    max-width: 100%;
    height: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.captcha-piezas {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.pieza-rotacion {
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.pieza-rotacion label {
    display: inline-block;
    min-width: 4em;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.pieza-rotacion select {
    width: 140px;
    color: #2d3748;
    margin-left: 0.5rem;
    padding: 0.6rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: white;
}

/* Botones modernizados */
.btn-submit {
    color: white;
    border: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    outline: none;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Botón Anterior */
.btn-submit.anterior {
    background-color: #6c757d;
    box-shadow: 
        0 4px 0 #4a5568,
        0 6px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-submit.anterior:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #4a5568,
        0 8px 15px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botón Siguiente */
.btn-submit.siguiente {
    background-color: #30a130;
    box-shadow:
        0 4px 0 #2d7a30,
        0 6px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-submit.siguiente:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #2d7a30,
        0 8px 15px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Contenedor para los botones */
.botones-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* Progress Bar Modernizado */
.progressbar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.progressbar-step-1,
.progressbar-step-2,
.progressbar-step-3 {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.progressbar-step-1 { width: 3%; }
.progressbar-step-2 { width: 50%; }
.progressbar-step-3 { width: 100%; }

/* Step Indicators Modernizados */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #667eea;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-indicator.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.step-indicator.completed {
    background: #48bb78;
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* Línea conectadora entre indicadores */
.step-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

/* Notification Widget Modernizado */
.stepper-register-widget {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.3));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
}

.stepper-register-widget p {
    margin: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stepper-register-widget hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.5s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .formulario-login {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .botones-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-submit {
        width: 100%;
        min-width: auto;
    }
    
    .captcha-piezas {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.8rem 1rem;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}