/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page,
html.login-page {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========================================
   BACKGROUND SLIDER
   ======================================== */

.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-slide.active {
    opacity: 1;
}

/* Overlay oscuro para mejorar legibilidad */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */

.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ========================================
   LOGIN CARD
   ======================================== */

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HEADER
   ======================================== */

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    /* Asegura fondo blanco si es transparente */
    padding: 10px;
    /* Un poco de aire dentro del marco */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

/* ========================================
   TABS
   ======================================== */

.login-card .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.login-card .nav-tabs .nav-link {
    color: #7f8c8d;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.login-card .nav-tabs .nav-link:hover {
    color: #5856d6;
    border: none;
}

.login-card .nav-tabs .nav-link.active {
    color: #5856d6;
    background: transparent;
    border: none;
    border-bottom: 3px solid #5856d6;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.login-card .form-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-card .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s;
}

.login-card .form-control:focus {
    border-color: #5856d6;
    box-shadow: 0 0 0 0.2rem rgba(88, 86, 214, 0.15);
}

.login-card .form-control::placeholder {
    color: #bdc3c7;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

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

.btn-forgot {
    background: #ff4757;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
    font-size: 14px;
    color: white;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-forgot:hover {
    background: #ff3838;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 71, 87, 0.3);
    color: white;
}

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

/* ========================================
   FOOTER
   ======================================== */

.footer-qcb.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2;
    padding: 15px 0;
}

.footer-qcb.login-footer .footer-logo {
    height: 30px;
}

.footer-qcb.login-footer p {
    margin: 0;
    font-size: 13px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 576px) {
    .login-container {
        padding: 60px 20px 80px 20px; /* Espacio arriba y abajo para footer */
        align-items: flex-start; /* Permitir scroll desde arriba */
        height: auto;
        min-height: 100%;
    }

    .login-card {
        padding: 30px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-logo {
        max-width: 120px;
    }

    .footer-qcb.login-footer {
        position: relative;
        background: rgba(0, 0, 0, 0.9);
        margin-top: auto;
        padding: 10px 0;
        backdrop-filter: blur(10px);
        z-index: 2;
    }

    .footer-qcb.login-footer p {
        font-size: 11px;
    }

    .footer-qcb.login-footer .footer-logo {
        height: 25px;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 25px 15px;
    }

    .login-card .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
}
