* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: #F5F7FA; min-height: 100vh; }
body.dark-mode { background: #0A1628; color: #E8ECF1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes checkmark { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes lockBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.animate-fadeIn { animation: fadeIn 0.4s ease-out both; }
.animate-slideIn { animation: slideIn 0.4s ease-out both; }
.animate-scaleIn { animation: scaleIn 0.3s ease-out both; }
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-shake { animation: shake 0.4s ease-in-out; }
.animate-toastIn { animation: toastIn 0.3s ease-out both; }
.animate-toastOut { animation: toastOut 0.3s ease-in both; }
.animate-lockBounce { animation: lockBounce 1.5s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.skeleton { background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: pulse 1.5s ease-in-out infinite; }
.dark-mode .skeleton { background: linear-gradient(90deg, #1a2744 25%, #243352 50%, #1a2744 75%); background-size: 200% 100%; }

.btn-primary { background: #CC0000; color: white; transition: all 0.15s ease; }
.btn-primary:hover { background: #990000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3); }
.btn-primary:active { transform: scale(0.97); }

.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.dark-mode .card-hover:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

input:focus, select:focus { outline: none; border-color: #012169; box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.15); }
.dark-mode input:focus, .dark-mode select:focus { border-color: #4a6fa5; box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.25); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.dark-mode ::-webkit-scrollbar-thumb { background: #3a4a6a; }

.gradient-navy { background: linear-gradient(135deg, #012169 0%, #000d2e 100%); }
.gradient-card-1 { background: linear-gradient(135deg, #012169 0%, #1a3a7a 100%); }
.gradient-card-2 { background: linear-gradient(135deg, #0d2b5e 0%, #012169 100%); }
.gradient-card-3 { background: linear-gradient(135deg, #1a3a7a 0%, #012169 100%); }

.otp-input { width: 48px; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border: 2px solid #d1d5db; border-radius: 12px; transition: all 0.2s; }
.otp-input:focus { border-color: #012169; box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.2); }
.dark-mode .otp-input { background: #1A2744; border-color: #3a4a6a; color: #E8ECF1; }

.password-weak { background: #DC3545; width: 33%; }
.password-medium { background: #FFC107; width: 66%; }
.password-strong { background: #00875A; width: 100%; }

.nav-link { position: relative; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: #CC0000; border-radius: 1px; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 768px) {
  .otp-input { width: 40px; height: 48px; font-size: 20px; }
}