/*
==========================================================
MÓDULO LOGIN - ESTILOS COMPLETOS
==========================================================
*/

/* ==========================================================
RESET Y BASE
========================================================== */
.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    z-index: 9999;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 0;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================
CARD LOGIN
========================================================== */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==========================================================
LOGO
========================================================== */
.logo-container {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 38px;
    color: #fff;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-container h2 {
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    font-size: 26px;
    letter-spacing: 1px;
}

.logo-container .subtitle {
    color: #718096;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 400;
}

/* ==========================================================
FORM
========================================================== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.form-group label i {
    color: #667eea;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.form-control {
    height: 52px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0 45px 0 45px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
    width: 100%;
}

.form-control:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

.form-control.error {
    border-color: #fc8181;
    background: #fff5f5;
}

.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(252, 129, 129, 0.15);
}

.form-control::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.invalid-feedback {
    display: none;
    color: #fc8181;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.invalid-feedback.show {
    display: block;
}

/* ==========================================================
PASSWORD TOGGLE
========================================================== */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #2d3748;
}

/* ==========================================================
BOTÓN LOGIN
========================================================== */
.btn-login {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login:disabled:hover {
    box-shadow: none;
}

.btn-text,
.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-text i,
.btn-loading i {
    margin-right: 10px;
}

/* ==========================================================
FOOTER
========================================================== */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer .version {
    color: #718096;
    font-weight: 500;
    font-size: 13px;
}

.login-footer small {
    color: #a0aec0;
    font-size: 12px;
}

/* ==========================================================
RESPONSIVE
========================================================== */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px 25px;
    }
    
    .login-container {
        padding: 10px;
    }
    
    .logo-icon {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }
    
    .logo-container h2 {
        font-size: 22px;
    }
    
    .form-control {
        height: 46px;
        font-size: 14px;
    }
    
    .btn-login {
        height: 46px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 20px 15px;
    }
    
    .logo-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}