/* static/login.css */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #0f3460; display: flex; flex-direction: column; min-height: 100vh; color: white; margin: 0; }

/* УНИВЕРСАЛЬНАЯ ПЛАШКА */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 5%; background: rgba(13, 17, 23, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); width: 100%;}
.logo-box { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #ffd166; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.logo-badge { background: linear-gradient(135deg, #e94560, #991b1b); color: white; padding: 4px 8px; border-radius: 6px; font-size: 14px; box-shadow: 0 0 10px rgba(233, 69, 96, 0.5); }
.btn-nav-login { background: transparent; color: #ffd166; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 13px; border: 1px solid #ffd166;}

@media (max-width: 480px) {
    .navbar { padding: 12px 15px; }
    .logo-box { font-size: 15px; gap: 6px; letter-spacing: 0px;}
    .logo-badge { padding: 3px 6px; font-size: 12px; }
    .btn-nav-login { padding: 7px 12px; font-size: 12px; }
}

.login-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; padding: 20px;}
.login-box { background: rgba(255,255,255,0.08); padding: 30px 25px; border-radius: 16px; backdrop-filter: blur(12px); width: 100%; max-width: 400px; box-shadow: 0 12px 35px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15);}
h2 { text-align: center; margin: 0 0 15px 0; color: #ffd166; font-size: 24px;}
.login-hint { background: rgba(255, 209, 102, 0.15); border-left: 4px solid #ffd166; padding: 12px; border-radius: 6px; font-size: 13px; line-height: 1.45; color: #f1f2f6; margin-bottom: 20px; }
input { display: block; width: 100%; padding: 14px; margin: 12px 0; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: #ffffff; font-size: 16px; outline: none; }
button { background: #e94560; color: white; border: none; padding: 14px; width: 100%; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 16px; margin-top: 5px;}
#error { color: #ff6b6b; text-align: center; margin-top: 15px; font-weight: bold; min-height: 20px; font-size: 14px;}

/* FOOTER */
footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 35px 5%; text-align: center; font-size: 13px; color: #94a3b8; background: #090d13; }
.legal-links { margin: 12px 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.legal-links a { color: #ffd166; text-decoration: none; font-weight: 600; }
.legal-links a:hover { text-decoration: underline; }

/* POLICY MODAL */
.policy-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10000; justify-content: center; align-items: center; padding: 20px; }
.policy-content { background: #16213e; color: #e2e8f0; padding: 30px; border-radius: 14px; max-width: 700px; max-height: 80vh; overflow-y: auto; border: 1px solid #ffd166; font-size: 14px; line-height: 1.6; }