.login-container {
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 100vh;
   padding: 2rem;
   background: #f8fafc;
   position: relative;
   overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.malaysia-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02)),
        linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02)),
        linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02)),
        linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02));
    background-size: 80px 80px;
    background-position: 0 0, 0 0, 40px 40px, 40px 40px;
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 520px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.govt-seal {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border: 3px solid white;
}

.govt-seal::before {
    content: 'MY';
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 1px;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #fbbf24, #dc2626);
    border-radius: 2px;
}

.login-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header .subtitle {
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.login-header .subtitle:last-child {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.login-body {
    text-align: center;
}

.login-body h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.btn {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    margin-bottom: 1.25rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-admin {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

.btn-user {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-user:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.35);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
}

.security-notice {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

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

.security-notice p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.security-notice::before {
    content: '🔒';
    font-size: 1.1rem;
    margin-right: 0.5rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-card {
        padding: 2.5rem 2rem;
        max-width: 100%;
    }
    
    .login-header h1 {
        font-size: 2.75rem;
    }
    
    .login-header .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 1.125rem 1.5rem;
        font-size: 1rem;
    }
    
    .govt-seal {
        width: 50px;
        height: 50px;
        top: -12px;
        right: -12px;
        font-size: 0.7rem;
    }
}

/* Subtle professional animations */
.login-card {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.govt-seal {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
