:root{
  --bg:#0b0d10; --card:#15181d; --card-border:#22262d; --text:#eef0f2; --muted:#8a919b;
  --accent:#ff4b4b; --accent2:#ff8a3d; --ring:0 0 0 3px rgba(255,75,75,.25);
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0; min-height:100dvh; display:flex; align-items:center; justify-content:center;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',sans-serif;
  background:radial-gradient(1200px 600px at 50% -10%, #201417 0%, var(--bg) 55%) var(--bg);
  color:var(--text); padding:max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.card{
  width:100%; max-width:360px; background:var(--card); border:1px solid var(--card-border);
  border-radius:20px; padding:32px 24px; box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.badge{
  width:56px; height:56px; border-radius:16px; margin:0 auto 18px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  display:flex; align-items:center; justify-content:center; font-size:26px;
}
h1{font-size:20px; text-align:center; margin:0 0 4px; letter-spacing:-.2px}
.sub{color:var(--muted); text-align:center; font-size:13px; margin:0 0 16px}
.notice{
  font-size:12px; line-height:1.5; color:var(--text); text-align:center; margin:0 0 20px;
  padding:10px 12px; background:rgba(255,138,61,.1); border:1px solid rgba(255,138,61,.35); border-radius:10px;
}
.notice b{color:var(--accent2)}
input{
  width:100%; padding:14px 16px; margin:6px 0; font-size:16px; color:var(--text);
  background:#0f1114; border:1px solid var(--card-border); border-radius:12px; outline:none;
}
input:focus{border-color:var(--accent); box-shadow:var(--ring)}
button{
  width:100%; padding:14px; margin-top:12px; font-size:16px; font-weight:600;
  background:linear-gradient(135deg, var(--accent), var(--accent2)); color:#fff; border:none;
  border-radius:12px; -webkit-tap-highlight-color:transparent;
}
button:active{opacity:.85}
.err{color:var(--accent); min-height:18px; font-size:13px; text-align:center; margin-top:10px}
.divider{display:flex; align-items:center; gap:12px; margin:18px 0 12px; color:var(--muted); font-size:12px}
.divider::before,.divider::after{content:''; flex:1; height:1px; background:var(--card-border)}
.oauth-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:14px; margin-top:10px; font-size:16px; font-weight:600;
  text-align:center; text-decoration:none; border-radius:12px; box-sizing:border-box;
  background:#0f1114; border:1px solid var(--card-border); color:var(--text);
  -webkit-tap-highlight-color:transparent;
}
.oauth-btn:active{opacity:.85}
.oauth-btn svg{flex:none}

.tg-widget-wrap{display:flex; justify-content:center; margin-top:10px; min-height:40px}
.alt-link{text-align:center; font-size:13px; margin-top:18px}
.alt-link a{color:var(--muted)}
