:root {
  --bg: #0b1520; --bg2: #111f2d; --line: #23384c; --text: #d8e4ef; --muted: #8aa0b5; --accent: #5cc8ff; --red: #ff6b6b; --green: #6be38f;
  font-family: var(--font-ui, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); font-size: 14px; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 30% 20%, #13283c, var(--bg) 60%); color: var(--text); }
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.hidden { display: none !important; }
.login { width: 100%; max-width: 380px; background: rgba(17, 31, 45, .95); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.brand .lang { margin-left: auto; align-self: flex-start; background: #0c1824; color: var(--text); border: 1px solid #2d4760; border-radius: 6px; padding: 3px 4px; font: inherit; font-size: 12px; }
.tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.form input { background: #0c1824; border: 1px solid #2d4760; border-radius: 6px; padding: 9px 10px; color: var(--text); font: inherit; font-size: 15px; }
.form input:focus { outline: 1px solid var(--accent); }
.btn { border-radius: 6px; padding: 10px; cursor: pointer; font: inherit; font-weight: 600; border: 1px solid #2a86c2; background: #145a86; color: #fff; }
.btn:hover { background: #1a6ea3; }
.google { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sep { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.msg { min-height: 20px; margin-top: 12px; color: var(--red); font-size: 13px; }
.msg.ok { color: var(--green); }
.note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 10px 0 0; }
.btn.link { background: none; border: 0; color: var(--accent); padding: 6px 0 0; font-weight: 500; text-decoration: underline; cursor: pointer; }
.btn.link:hover { background: none; color: #8fdcff; }
.note.small { margin: 0; }
.msg { white-space: pre-line; }
#google-btn { min-height: 44px; display: flex; justify-content: center; width: 100%; }
