/* Login Page - Clean White Theme */

.login-container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.login-card {
    flex: 1;
    max-width: 480px;
    background: #ffffff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: #1e293b;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: #2563eb;
}

.logo h1 {
    font-size: 2.25rem;
    color: #1e293b;
    margin: 0;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.tagline {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.25rem;
}

.login-tabs a {
    flex: 1;
    text-align: center;
    padding: 0.875rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-tabs a.active {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 600;
}

.login-tabs a:hover:not(.active) {
    color: #1e293b;
    background: rgba(255,255,255,0.5);
}

.login-tabs a i {
    font-size: 1rem;
}

.login-form {
    flex: 1;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label i {
    color: #2563eb;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2563eb;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.btn-block {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-block:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.btn-block:active {
    transform: translateY(0);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #2563eb;
}

.forgot-password {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.register-link p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.register-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.demo-credentials h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credential {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.credential strong {
    color: #1e293b;
    font-weight: 600;
}

.login-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
}

.login-info p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #64748b;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.feature i {
    font-size: 1.75rem;
    color: #2563eb;
    width: 40px;
    text-align: center;
}

.feature span {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-card {
        max-width: 100%;
        padding: 2rem;
        box-shadow: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .login-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .login-tabs {
        flex-direction: row;
    }
    
    .login-tabs a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 100vh;
        min-height: 100dvh;
    }
    
    .login-header {
        margin-bottom: 2rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .login-tabs {
        margin-bottom: 1.5rem;
    }
    
    .login-tabs a {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .login-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-credentials {
        padding: 1rem;
    }
}

/* Remove dark mode - keep it clean and white */
/* Smooth animations */
.login-card {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.form-group input:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.btn-block:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
