:root {
 color-scheme: light;
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 color: #141a29;
 background: #edf2fb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
 min-height: 100vh;
 min-height: 100dvh;
 margin: 0;
 display: grid;
 place-items: center;
 padding: 24px;
 background: radial-gradient(ellipse at 85% 6%, #d8e6ff, transparent 64%),
             linear-gradient(155deg, #f5f7fc, #eaf0fb);
}
.login {
 width: min(100%, 432px);
 padding: clamp(24px, 6vw, 40px);
 border: 1px solid #dce3ef;
 border-radius: 24px;
 background: #fff;
 box-shadow: 0 16px 60px #24427318;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 650; }
.brand-mark {
 display: grid;
 place-content: center;
 width: 32px;
 height: 32px;
 margin-right: 3px;
 border-radius: 9px;
 color: white;
 background: #183e8e;
 font-size: 13px;
 line-height: 6px;
 letter-spacing: 2px;
 text-indent: 2px;
}
.separator { width: 1px; height: 14px; background: #c1cbdc; }
h1 { margin: 28px 0 6px; font-size: clamp(1.8rem, 7vw, 2.4rem); letter-spacing: -.045em; }
p { margin: 0; color: #4e5970; font-size: .93rem; line-height: 1.55; }
.intro { margin-bottom: 22px; }
button, a { font: inherit; }
.primary {
 display: block;
 width: 100%;
 padding: 13px 15px;
 border: 0;
 border-radius: 10px;
 color: white;
 background: #1d53bb;
 text-align: center;
 text-decoration: none;
 font-weight: 650;
 cursor: pointer;
}
.primary:hover { background: #19489f; }
.primary:disabled { opacity: .62; cursor: default; }
.secondary {
 padding: 7px 10px;
 border: 1px solid #c2cee3;
 border-radius: 7px;
 color: #23478d;
 background: #fff;
 font-size: .86rem;
 font-weight: 600;
 cursor: pointer;
}
.secondary:hover { background: #eef4ff; }
:focus-visible { outline: 3px solid #3169d8; outline-offset: 3px; }
.code-panel {
 display: grid;
 grid-template-columns: 1fr auto;
 align-items: center;
 gap: 5px 8px;
 padding: 12px;
 margin-bottom: 12px;
 border: 1px solid #e0e8f6;
 border-radius: 10px;
 background: #f5f8ff;
}
.code-panel span { grid-column: 1 / -1; color: #4e5970; font-size: .8rem; }
#code { font-size: clamp(1rem, 5vw, 1.45rem); font-variant-numeric: tabular-nums; letter-spacing: .075em; }
#telegram { margin-top: 15px; }
#status { margin-top: 15px; }
#status:empty { display: none; }
#retry { margin-top: 12px; }
