* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #005fb6;
    --primary-dark-blue: #004a94;
    --primary-light-blue: #0078e7;
    --accent-blue: #60a5fa;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border-gray: #e2e8f0;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f8ff 50%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

/* Background shapes */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 95, 182, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 650px;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 95, 182, 0.35);
}

.card-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark-blue) 100%);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-right {
    flex: 1.2;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.card-left h1 {
    font-weight: 700;
    font-size: 36px;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-left .logo-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.welcome-text h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.6;
}

.features {
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature i {
    margin-right: 15px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    width: 24px;
    text-align: center;
}

/* Enhanced Tabs Styling */
.tabs-container {
    margin-bottom: 25px;
}

.tabs {
    display: flex;
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 35px;
    border: 2px solid var(--border-gray);
    box-shadow: var(--shadow-light);
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--primary-blue);
}

.active-indicator {
    position: absolute;
    top: 8px;
    height: calc(100% - 16px);
    width: calc(50% - 8px);
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.tab-btn:hover:not(.active) {
    color: var(--primary-blue);
}

/* Enhanced Login Forms */
.login-form {
    display: none;
    text-align: left;
    padding: 30px;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.login-form.active {
    display: block;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 95, 182, 0.15);
    animation: formSlideIn 0.4s ease;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 28px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    z-index: 2;
    font-size: 18px;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 18px 18px 18px 55px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 95, 182, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 500;
}

.remember-me input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

.remember-me input:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.remember-me input:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark-blue) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 95, 182, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 95, 182, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    display: none;
    font-weight: 500;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 580px;
        margin: 0 auto;
    }
    
    .card-left {
        padding: 40px 30px;
    }
    
    .card-right {
        padding: 40px 30px;
    }
    
    .login-container {
        max-width: 580px;
    }
    
    .active-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 0;
    }
    
    .card-left, .card-right {
        padding: 30px 25px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .forgot-password {
        margin-top: 0;
    }
    
    .tab-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
    
    .card-left h1 {
        font-size: 30px;
    }
    
    .login-form {
        padding: 25px;
    }
}