/* ========================================
   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-page {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Inter', sans-serif;
    background: #1a1a2e;
}

.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);
    }
}

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

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

.login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 10px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 10px 0 5px;
}

.login-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

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

.login-card .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
    display: flex;
    list-style: none;
    padding: 0;
}

.login-card .nav-tabs .nav-item {
    flex: 1;
}

.login-card .nav-tabs .nav-link {
    color: #7f8c8d;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

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

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

/* ========================================
   FORM STYLES
   ======================================== */

.login-card .form-group {
    margin-bottom: 18px;
}

.login-card .form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.login-card .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

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

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

/* ========================================
   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;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.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%);
}

.btn-forgot {
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
    font-size: 14px;
    color: white;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-forgot:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 101, 101, 0.4);
}

/* ========================================
   TAB CONTENT
   ======================================== */

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */

.language-selector-login {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector-login .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-selector-login .lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-selector-login .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    overflow: hidden;
}

.language-selector-login .lang-dropdown.show {
    display: block;
}

.language-selector-login .lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.language-selector-login .lang-dropdown a:hover,
.language-selector-login .lang-dropdown a.active {
    background: #edf2f7;
    color: #5856d6;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */

.login-error {
    background: #fff5f5;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid #feb2b2;
    text-align: center;
}

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

.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.login-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.login-footer .footer-text {
    color: white;
    font-size: 0.85rem;
    text-align: right;
}

.login-footer .footer-text p {
    margin: 0;
}

.login-footer .footer-text .text-muted {
    color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
        margin: 10px;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .login-card .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .login-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
