body.light { --s2: rgb(255 255 255 / 72%); --ln: rgb(255 255 255 / 50%); --fbg: #f8fafc; }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 2; }
.main-web-link { position: absolute; top: 24px; left: 24px; z-index: 10; }
.main-web-link a { display: flex; align-items: center; gap: 8px; color: var(--mu); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
.main-web-link a:hover { color: var(--cy); transform: translateX(-4px); }
.login-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 1000px; background: var(--bg2); border: 1px solid var(--ln); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4); position: relative; }
body.light .login-split { box-shadow: 0 40px 80px rgba(10, 24, 45, 0.1); }
.login-banner { padding: 60px; background: radial-gradient(circle at bottom left, rgba(10,143,181,0.15), transparent 70%), var(--s); position: relative; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--ln); overflow: hidden; }
.banner-glow { position: absolute; width: 300px; height: 300px; background: var(--vi); filter: blur(100px); opacity: 0.15; bottom: -100px; right: -100px; pointer-events: none; }
.banner-logo { width: 180px; margin-bottom: 30px; opacity: 0.9; }
body.light .logo-dark { display: none; }
body.light .logo-light { display: block; }
body:not(.light) .logo-dark { display: block; }
body:not(.light) .logo-light { display: none; }
.banner-content h2 { font-family: "Space Grotesk", sans-serif; font-size: 32px; line-height: 1.1; color: var(--tx); margin-bottom: 16px; letter-spacing: -0.03em; }
.banner-content p { color: var(--mu); font-size: 15px; line-height: 1.6; max-width: 320px; }
.login-form-area { padding: 60px; display: flex; align-items: center; justify-content: center; background: var(--fbg); }
.form-container { width: 100%; max-width: 380px; }
.form-title { font-family: "Space Grotesk", sans-serif; font-size: 26px; color: var(--tx); margin: 0 0 8px 0; }
.form-subtitle { color: var(--mu); font-size: 14px; margin: 0 0 30px 0; }
.modal-form .form-group { margin-bottom: 20px; }
.modal-form label { display: block; font-size: 12px; font-weight: 700; color: var(--mu); margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.modal-form input { width: 100%; padding: 14px 16px; background: var(--s2); border: 1px solid var(--ln); border-radius: 12px; color: var(--tx); font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.05); }
.modal-form input:focus { border-color: var(--cy); background: var(--s); box-shadow: 0 0 0 3px rgba(10, 143, 181, 0.15); }
.otp-field { text-align: center; font-size: 24px !important; letter-spacing: 8px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.login-btn { width: 100%; height: 54px; justify-content: center; padding: 16px; border-radius: 12px; font-size: 15px; position: relative; border: none; background: var(--cy); color: var(--bg); font-weight: 700; cursor: pointer; transition: 0.2s; }
.login-btn:hover { box-shadow: 0 5px 15px rgba(10, 143, 181, 0.3); transform: translateY(-2px); }
.custom-alert { position: fixed; top: 30px; left: 50%; width: max-content; max-width: 94vw; transform: translateX(-50%); z-index: 9999; display: flex; gap: 12px; background: rgba(239, 68, 68, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #ffffff; padding: 14px 28px; border-radius: 50px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3); border: 1px solid rgba(255, 255, 255, 0.3); animation: slideDownToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.custom-alert.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
.custom-alert.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.custom-alert i { font-size: 18px; }
.custom-alert.hidden { display: none !important; }
.custom-alert.fade-out { animation: slideUpToast 0.3s ease-in forwards; }
@keyframes slideDownToast { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes slideUpToast { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -30px); } }
.hidden { display: none !important; }
.dotted-spinner { width: 20px; height: 20px; top: 35%; left: 47%; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; border-top-color: #ffffff; animation: spin 0.8s linear infinite; position: absolute; }
body:not(.light) .dotted-spinner { border-top-color: var(--tx); border-color: rgba(255,255,255,0.3); }
@keyframes spin { to { transform: rotate(360deg); } }
.global-loader { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease; }
.loading-dots { display: flex; gap: 8px; }
.loading-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cy); animation: jump 1.2s infinite ease-in-out both; }
.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; background: var(--cy); }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; background: var(--vi); }
.loading-dots .dot:nth-child(3) { animation-delay: 0s; background: var(--gr); }
@keyframes jump { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

@media (max-width: 850px) {
    .login-split { grid-template-columns: 1fr; max-width: 450px; }
    .login-wrapper { align-items: flex center; }
    .login-banner { display: none; padding: 40px; text-align: center; border-right: none; border-bottom: 1px solid var(--ln); }
    .banner-content p { margin: 0 auto; }
    .banner-logo { margin: 0 auto 20px auto; }
    .login-form-area { padding: 40px; }
    .main-web-link { top: 15px; left: 15px; }
}

@media (max-width: 480px) {
    .login-wrapper { padding: 15px; }
    .login-banner { padding: 30px 20px; }
    .login-form-area { padding: 30px 20px; }
    .banner-content h2 { font-size: 24px; }
}