/* ========================================
   MODAL GENERAL
   ======================================== */

.slr-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(6px); 
    justify-content: center; 
    align-items: center;
}

.slr-modal.active { 
    display: flex; 
}

.slr-modal-content { 
    background: #F7F7F7; 
    color: #000;
    width: 350px; 
    border-radius: 10px; 
    box-shadow: 0 0 30px rgba(0,0,0,0.4); 
    padding: 25px 30px; 
    position: relative; 
    animation: fadeIn 0.3s ease; 
}

@keyframes fadeIn { 
    from {
        opacity: 0; 
        transform: translateY(-10px);
    } 
    to {
        opacity: 1; 
        transform: translateY(0);
    } 
}

.slr-close { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 35px; 
    color: #2a2a2a; 
    cursor: pointer; 
    transition: color 0.3s ease;
}

.slr-close:hover { 
    color: #3143e2; 
}

/* ========================================
   TABS
   ======================================== */

.slr-tabs { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #333; 
}

.slr-tab-btn { 
    flex: 1; 
    background: none; 
    border: none; 
    color: #2a2a2a; 
    font-weight: 600; 
    font-size: 15px; 
    padding: 10px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.slr-tab-btn.active { 
    color: #000; 
    border-bottom: 2px solid #3143e2; 
}

/* ========================================
   FORMULARIOS
   ======================================== */

.slr-form { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 10px; 
}

.slr-input-wrapper { 
    position: relative; 
}

.slr-input-wrapper i { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    color: #777; 
    font-size: 18px; 
}

.slr-form input[type="text"], 
.slr-form input[type="email"], 
.slr-form input[type="password"] { 
    width: 100%; 
    padding: 10px 40px 10px 35px; 
    border-radius: 6px; 
    border: 1px solid #333; 
    background: #fff; 
    color: #000; 
    font-size: 14px; 
    transition: all 0.3s ease; 
    box-sizing: border-box;
}

.slr-form input:focus { 
    outline: none; 
    border-color: #3143e2; 
    box-shadow: 0 0 5px #3143e2; 
}

/* ========================================
   BOTONES DE FORMULARIO
   ======================================== */

.slr-form input[type="submit"] { 
    background: #3143e2; 
    color: #fff; 
    font-weight: 700; 
    text-transform: uppercase; 
    border: none; 
    border-radius: 6px; 
    padding: 10px; 
    cursor: pointer; 
    transition: background 0.3s ease; 
}

.slr-form input[type="submit"]:hover { 
    background: rgba(49,67,226,0.8); 
}

/* ========================================
   ENLACES (FORGOT PASSWORD)
   ======================================== */

.slr-forgot-link, 
.slr-back-login { 
    text-align: center; 
    font-size: 13px; 
    margin-top: 5px; 
}

.slr-forgot-link a, 
.slr-back-login a { 
    color: #3143e2; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.slr-forgot-link a:hover, 
.slr-back-login a:hover { 
    color: rgba(49,67,226,0.8); 
}

/* ========================================
   MENSAJES
   ======================================== */

#slr-messages { 
    margin-bottom: 10px; 
    text-align: center; 
}

.slr-error { 
    color: #ff4d4f; 
    font-weight: 600; 
}

.slr-success { 
    color: #4caf50; 
    font-weight: 600; 
}

/* ========================================
   HONEYPOT (CAMPO OCULTO ANTI-BOT)
   ======================================== */

.slr-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ========================================
   TOGGLE PASSWORD (MOSTRAR/OCULTAR)
   ======================================== */

.slr-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3143e2;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.slr-toggle-password:hover {
    opacity: 0.7;
}

.slr-eye-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   INDICADOR DE FORTALEZA DE CONTRASEÑA
   ======================================== */

.slr-password-strength {
    margin-top: 8px;
    margin-bottom: 8px;
}

.slr-strength-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.slr-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.slr-strength-bar[data-strength="weak"]::after {
    content: "Débil";
    display: block;
    font-size: 11px;
    color: #ff4d4f;
    margin-top: 4px;
    font-weight: 600;
}

.slr-strength-bar[data-strength="medium"]::after {
    content: "Media";
    display: block;
    font-size: 11px;
    color: #ff9800;
    margin-top: 4px;
    font-weight: 600;
}

.slr-strength-bar[data-strength="good"]::after {
    content: "Buena";
    display: block;
    font-size: 11px;
    color: #ffc107;
    margin-top: 4px;
    font-weight: 600;
}

.slr-strength-bar[data-strength="strong"]::after {
    content: "Fuerte";
    display: block;
    font-size: 11px;
    color: #4caf50;
    margin-top: 4px;
    font-weight: 600;
}

.slr-password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 12px;
}

.slr-password-requirements li {
    padding: 4px 0 4px 22px;
    position: relative;
    color: #666;
    transition: color 0.3s ease;
}

.slr-password-requirements li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ff4d4f;
    font-weight: bold;
    transition: all 0.3s ease;
}

.slr-password-requirements li.valid {
    color: #4caf50;
}

.slr-password-requirements li.valid::before {
    content: "✓";
    color: #4caf50;
}

@keyframes checkmark {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.slr-password-requirements li.valid::before {
    animation: checkmark 0.3s ease;
}

/* ========================================
   RESPONSIVE (MÓVIL)
   ======================================== */

@media (max-width: 480px) { 
    .slr-modal-content { 
        width: 90%;
        padding: 20px; 
    } 
}