:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #002244 0%, #00509e 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.login-left {
    background: linear-gradient(135deg, #002244 0%, #00509e 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
}

.login-left > * {
    position: relative;
    z-index: 2;
}

.logo-section {
    margin-bottom: 40px;
}

.logo-container {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-5px) scale(1.05);
}

.logo-img {
    margin-top: 14px;
    width: 120px;
    height: auto;
    object-fit: contain;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.app-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.welcome-message {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.login-right {
    padding: 60px 40px;
    background: white;
}

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

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background: #fef2f2;
}

.input-group {
    position: relative;
}

.input-group-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

.btn-login {
    background: linear-gradient(135deg, #0d6efd 0%, #00509e 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: white;
}

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

.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.keyboard-toggle-btn {
    width: 44px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.keyboard-toggle-icon {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.keyboard-toggle-btn:hover .keyboard-toggle-icon,
.keyboard-toggle-btn:focus .keyboard-toggle-icon,
.keyboard-toggle-btn:active .keyboard-toggle-icon {
    opacity: 1;
    transform: translateY(-1px);
}

.language-btn:hover,
.language-btn:focus,
.language-btn:active,
.language-btn.show {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-top: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover, 
.dropdown-item:focus, 
.dropdown-item.active, 
.dropdown-item:active {
    background: #0d6efd;
    color: white;
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left: 4px solid var(--success-color);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid var(--danger-color);
    color: #991b1b;
}

.alert-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse {
    animation: pulseIn 0.8s ease-out;
}
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
    }
    
    .login-left,
    .login-right {
        padding: 40px 30px;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .logo-img {
        max-width: 70px;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .login-left,
    .login-right {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .app-title {
        font-size: 1.25rem;
    }
}
.nav-tabs {
    border: none;
    margin-bottom: 30px;
    justify-content: center;
}

.nav-tabs .nav-link {
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.nav-tabs .nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.tab-content {
    margin-top: 20px;
}
.remembered-account-card .card {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.remembered-account-card .card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.remembered-account-card .card.loading {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-effect {
    transition: all 0.2s ease;
}
