/**
 * LOGIN - CSS ESPECÍFICO
 * estilos_login.css
 * Estilos exclusivos para la página de login
 */

/* CONTENEDOR PRINCIPAL */
body.perfil-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('../../../assets/icons/fondo2.jpg') fixed;
    background-size: cover;
    padding: 20px;
    transition: background 0.4s ease, color 0.4s ease;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #000000;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

footer {
    margin-top: auto;
}

/* TÍTULO BIENVENIDA */
.bienvenida-login {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #2a2a2a;
}

/* TÍTULO H2 */
.form-box h2 {
    text-align: center;
    width: 100%;
    margin: 20px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.form-box h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #4b4b4b;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* FORMULARIO LOGIN */
.form-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(to bottom right, #ffffff, #f5f7fa);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-box:hover {
    transform: translateY(-3px);
}

/* LOGO */
.form-box .logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: contain;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* LABELS E INPUTS */
.form-group label {
    font-size: 0.95rem;
    color: #333;
}

.form-group input {
    text-align: center;
    padding-left: 12px;
    max-width: 100%;
}

/* OPCIONES INFERIORES */
.opciones-login {
    margin-top: 15px;
    font-size: 0.9rem;
}

.opciones-login a {
    color: #2f87c2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.opciones-login a:hover {
    text-decoration: underline;
}

/* MOSTRAR CONTRASEÑA */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 32px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #2f87c2;
}

/* BOTÓN MODO OSCURO */
.login-modo-oscuro {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    font-size: 1.2rem !important;
    background: #fff !important;
    transition: all 0.3s ease;
}

.login-modo-oscuro:hover {
    transform: scale(1.05);
}

/* MODO OSCURO */
body.modo-oscuro {
    background: url('../../../assets/icons/fondo.jpg') fixed;
    background-size: cover;
    color: #ffffff;
}

body.modo-oscuro .form-box {
    background: linear-gradient(120deg, #3b4a5a, #2e3b47);
    color: #eee;
}

body.modo-oscuro .bienvenida-login {
    color: #f0f0f0;
}

body.modo-oscuro .form-box h2 {
    color: #ffffff;
}

body.modo-oscuro .form-box h2::after {
    background: #ffffff;
}

body.modo-oscuro .toggle-password {
    color: #ccc;
}

body.modo-oscuro .form-group label {
    color: #e0e0e0;
}

body.modo-oscuro .login-modo-oscuro {
    background: #3b4a5a !important;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1) !important;
}

/* FOOTER ANCHO COMPLETO */
body.perfil-body .footer-comun {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .form-box {
        padding: 25px 18px;
    }

    .bienvenida-login {
        font-size: 1.5rem;
    }

    .form-box h2 {
        font-size: 1.5rem;
    }

    .form-group input {
        font-size: 0.95rem;
    }

    .login-modo-oscuro {
        top: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    body.perfil-body .footer-comun {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
    }
}

@media (min-width: 768px) {
    .form-box {
        max-width: 500px;
        padding: 40px 30px;
    }

    .bienvenida-login {
        font-size: 2rem;
    }

    .form-box h2 {
        font-size: 2rem;
    }

    .form-group input {
        font-size: 1rem;
    }
}