/* =========================================
   LOGIN & REGISTER PREMIUM STYLES
   ========================================= */

.login-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos de fondo */
.login-wrapper::before,
.login-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.login-wrapper::before {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    /* Sky Blue */
    top: -100px;
    left: -100px;
}

.login-wrapper::after {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.15);
    /* Purple */
    bottom: -50px;
    right: -50px;
}

aside {
    display: flex;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Inputs Premium */
/* Inputs Premium - Ajuste de padding para iconos */
.input-group-premium .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 45px 0.8rem 45px !important;
    /* Espacio para iconos izq y der */
    height: 50px;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
}

.form-floating-premium .form-control:focus {
    border-color: #38bdf8;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

/* Iconos dentro de inputs */
.input-group-premium {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group-premium .input-icon {
    position: absolute;
    left: 15px;
    /* Ajustado */
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 10;
    transition: color 0.3s;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.input-group-premium .form-control:focus+.input-icon {
    color: #38bdf8;
}

/* Ver contraseña ojo */
/* Icono del ojo (toggle password) */
.toggle-password,
.btn-ver-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8 !important;
    cursor: pointer;
    z-index: 1000 !important;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    pointer-events: auto !important;
}

.toggle-password:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1);
}

.toggle-password i {
    font-size: 1.1rem;
}

/* Ocultar iconos nativos de navegadores */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* Botón Login Gradiente */
.btn-login-premium {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    border: none;
    border-radius: 12px;
    padding: 0.8rem;
    width: 100%;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-login-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.4);
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.forgot-password-link {
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-link:hover {
    color: #38bdf8;
}

.register-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.register-link a {
    color: #0f172a;
    /* Slate-900 */
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Checkbox */
.form-check-input:checked {
    background-color: #0f172a;
    border-color: #0f172a;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .login-glass-card {
        padding: 1.5rem !important;
        margin: 0 15px;
    }

    .login-header h4 {
        font-size: 1.5rem;
    }

    .login-header {
        margin-bottom: 1.5rem;
    }

    .input-group-premium .form-control {
        height: 45px;
        font-size: 0.95rem;
    }
}