.login-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    padding: 12px;
    box-sizing: border-box;
}

/* fondo blur */
.login-backdrop {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.55);
backdrop-filter: blur(6px);
animation: fadeBackdrop 0.25s ease;
}
/* boton cerrar */
.login-close {
position: absolute;
top: 10px;
right: 14px;

border: none;
background: none;
font-size: 26px;
cursor: pointer;

opacity: 0.6;
transition: 0.2s;
transform: scale(1.1);

}

.login-modal {
    position: relative;
    background: #ffffffe1;
    border-radius: 14px;
    width: 600px;
    max-width: 95%;
    max-height: min(90vh, 860px);
    padding: 28px;
    overflow: auto;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.1);
    animation: modalEnter 0.25s ease;
}

/* Cargando */
.login-loading {
text-align: center;
padding: 40px;
font-size: 16px;
max-height: 90vh;
overflow: auto;
}

.login-container {
    width: 30rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 50px 100px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    cursor: default;
}

.login-header h1 {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, rgb(200, 104, 230) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-header p {
    color: #718096;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    gap: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

.forgot-password-row {
    margin-top: 12px;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b68ee 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.divider span {
    padding: 0 15px;
    color: #718096;
    font-size: 14px;
    position: relative;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.social-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.register-link {
    position: relative;
    padding-top: 1rem;
    text-align: center;
    font-size: 14px;
    color: #718096;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #764ba2;
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: #1b1b1b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-home a:hover {
    color: rgb(140, 0, 255);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .login-modal {
        width: calc(100% - 20px);
        max-width: none;
        padding: 18px 14px;
        border-radius: 16px;
    }

    .login-container {
        width: 20rem;
        height: 100%;
        padding: 28px 10px;
        border-radius: 16px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .form-group input,
    .btn-login {
        padding: 13px;
    }

    .form-options {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .login-header h1 {
        font-size: 24px;
    }
}
