html, body { margin: 0; background: #081227; color: #c9d3e6; }
html[data-theme="light"], html[data-theme="light"] body { background: #f3f5f9; color: #1c2333; }
body { min-height: 100dvh; display: grid; place-items: center; font-family: 'Segoe UI', Tahoma, Arial, sans-serif; padding: 24px; box-sizing: border-box; }
.box { width: 100%; max-width: 360px; text-align: center; }
.logo { width: 72px; height: 72px; }
h1 { font-size: 20px; font-weight: 600; margin: 12px 0 24px; }
form { display: grid; gap: 8px; text-align: start; }
label { font-size: 15px; margin-top: 8px; }
input { height: 48px; font-size: 18px; padding: 0 12px; border-radius: 8px; border: 1px solid #3a4a6b; background: #0f1d3a; color: inherit; box-sizing: border-box; width: 100%; }
html[data-theme="light"] input { background: #fff; border-color: #b8c2d6; }
input:focus-visible, button:focus-visible { outline: 3px solid #4ea3ff; outline-offset: 2px; }
#go { margin-top: 16px; height: 48px; border: 0; border-radius: 8px; background: #2e8b57; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
#go[disabled] { opacity: .6; cursor: wait; }
.err { min-height: 1.4em; margin: 4px 0 0; color: #ff8a8a; font-size: 15px; line-height: 1.4; }
html[data-theme="light"] .err { color: #b3261e; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.langs button { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #3a4a6b; background: transparent; color: inherit; font-size: 15px; cursor: pointer; }
.langs button[aria-pressed="true"] { border-color: #2e8b57; background: rgba(46, 139, 87, .18); }
html[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; }
