:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #050607; color: #f9fafb; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.page--redirect { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.redirect { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(91, 204, 255, .18); border-top-color: #69d5ff; border-right-color: #69d5ff; border-radius: 50%; box-shadow: 0 0 28px rgba(67, 187, 242, .13); animation: spin .8s linear infinite; }
.redirect h1 { margin: 30px 0 0; font-size: clamp(19px, 3vw, 25px); font-weight: 500; letter-spacing: -.025em; line-height: 1.35; }
.redirect__detail { min-height: 1.5em; margin: 12px 0 0; color: #79818a; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.page--config { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 50% 0, #0c1920 0, #050607 42%); }
.config-shell { width: min(100%, 460px); }
.config-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #aeb8c0; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.config-brand__mark { width: 11px; height: 11px; border: 2px solid #69d5ff; border-radius: 50%; box-shadow: 0 0 16px rgba(105,213,255,.55); }
.panel { padding: 34px; border: 1px solid #263039; border-radius: 18px; background: #0c1013; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.eyebrow { margin: 0 0 12px; color: #69d5ff; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.panel h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.045em; }
.intro { margin: 12px 0 28px; color: #98a2ab; font-size: 14px; line-height: 1.6; }
.form { display: flex; flex-direction: column; }
.form label { margin: 0 0 9px; color: #e4e8eb; font-size: 13px; font-weight: 600; }
.form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #35404a; border-radius: 9px; outline: none; background: #11181d; color: #f9fafb; font-size: 14px; }
.form input:focus { border-color: #69d5ff; box-shadow: 0 0 0 3px rgba(105,213,255,.13); }
.form input::placeholder { color: #66727d; }
.field-hint { margin: 8px 0 23px; color: #79858e; font-size: 12px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 100px; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #8d98a1; font-size: 13px; pointer-events: none; }
.form button[type="submit"] { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 25px; padding: 0 16px; border: 0; border-radius: 9px; background: #76d9ff; color: #041017; font-size: 14px; font-weight: 700; transition: background .2s, transform .2s; }
.form button[type="submit"]:hover { background: #a4e7ff; transform: translateY(-1px); }
.form button[type="submit"]:disabled { opacity: .55; cursor: wait; transform: none; }
.text-button { align-self: center; margin-top: 20px; padding: 6px; border: 0; background: none; color: #9ba7b0; font-size: 12px; }
.text-button:hover, .back-link:hover { color: #76d9ff; }
.feedback { min-height: 1.4em; margin: 16px 0 0; color: #82e2bd; font-size: 13px; line-height: 1.4; }
.feedback--error { color: #ff9c9c; }
.back-link { display: inline-block; margin-top: 22px; color: #87939c; font-size: 13px; text-decoration: none; }
@media (max-width: 500px) { .panel { padding: 26px 22px; } .config-brand { margin-left: 2px; } }
