:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; background: #0a0d0c; color: #f4f7f5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 18% 20%, #24432f 0, transparent 32%), linear-gradient(135deg, #090c0b, #111714); }
.shell { width: min(1120px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 76px; padding: 56px 0; }
.brand { display: inline-block; border: 1px solid #768179; padding: 8px 12px; font-weight: 800; letter-spacing: .12em; }
.eyebrow, .kicker { color: #b8f45c; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { font-size: clamp(42px, 5vw, 70px); letter-spacing: -.055em; line-height: .98; margin: 28px 0; max-width: 780px; }
.lead { color: #aeb8b1; font-size: 18px; line-height: 1.65; max-width: 660px; }
.card { position: relative; background: rgba(21, 27, 23, .9); border: 1px solid #334038; border-radius: 24px; padding: 34px; box-shadow: 0 28px 80px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
.stepper { display: flex; align-items: center; margin-bottom: 34px; }
.stepper span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2a322d; color: #829087; font-weight: 800; }
.stepper span.active { background: #b8f45c; color: #10140f; }
.stepper i { height: 1px; flex: 1; background: #39433d; }
h2 { font-size: 30px; margin: 6px 0 22px; letter-spacing: -.035em; }
.panel > p:not(.kicker):not(.success-mark) { color: #aeb8b1; line-height: 1.55; }
label { display: grid; gap: 8px; margin: 18px 0; color: #cbd3ce; font-size: 14px; font-weight: 700; }
input { width: 100%; border: 1px solid #465148; background: #0e1310; color: white; border-radius: 11px; padding: 14px 15px; font: inherit; outline: none; }
input:focus { border-color: #b8f45c; box-shadow: 0 0 0 3px rgba(184,244,92,.12); }
button { width: 100%; border: 0; border-radius: 11px; padding: 14px; background: #b8f45c; color: #11170e; font: inherit; font-weight: 850; cursor: pointer; margin-top: 6px; }
button:hover { filter: brightness(1.07); }
button:focus-visible { outline: 3px solid rgba(184,244,92,.72); outline-offset: 3px; }
button:disabled { cursor: not-allowed; filter: saturate(.7); opacity: .72; }
button:disabled:hover { filter: saturate(.7); }
button.secondary { background: transparent; color: #bec8c1; border: 1px solid #465148; margin-top: 10px; }
.hint { font-size: 12px; text-align: center; }
.login-progress { display: grid; gap: 13px; margin-top: 15px; border: 1px solid rgba(184,244,92,.24); border-radius: 13px; padding: 14px; background: linear-gradient(135deg, rgba(184,244,92,.09), rgba(14,19,16,.82)); }
.login-progress-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.login-progress-copy > span:last-child { display: grid; gap: 3px; min-width: 0; }
.login-progress-copy strong { color: #edf6ef; font-size: 13px; line-height: 1.35; }
.login-progress-copy small { color: #9eaaa2; font-size: 11px; line-height: 1.45; }
.login-progress-spinner { flex: 0 0 auto; width: 24px; height: 24px; border: 2px solid rgba(184,244,92,.18); border-top-color: #b8f45c; border-radius: 50%; animation: login-progress-spin .85s linear infinite; }
.login-progress-track { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(184,244,92,.12); }
.login-progress-track i { position: absolute; inset: 0 auto 0 -42%; width: 42%; border-radius: inherit; background: linear-gradient(90deg, transparent, #b8f45c 45%, #d9ffa2 70%, transparent); animation: login-progress-slide 1.15s ease-in-out infinite; }
@keyframes login-progress-spin { to { transform: rotate(360deg); } }
@keyframes login-progress-slide { to { left: 100%; } }
.qr { display: block; width: 210px; height: 210px; margin: 24px auto; background: white; padding: 10px; border-radius: 14px; }
details { background: #0e1310; border: 1px solid #333d36; border-radius: 10px; padding: 12px; }
details code { display: block; word-break: break-all; margin-top: 10px; color: #b8f45c; }
.success-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #b8f45c; color: #10140f; font-size: 34px; font-weight: 900; }
.success-heading { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 24px; }
.success-heading .success-mark { margin: 0; }
.success-heading .kicker { margin: 1px 0 6px; }
.success-heading h2 { margin: 0 0 8px; }
.success-heading #success-message { color: #aeb8b1; line-height: 1.5; margin: 0; }
#recovery-wrap { margin: 0 0 22px; }
#recovery-wrap > p { color: #dce7df; line-height: 1.5; }
pre { white-space: pre-wrap; columns: 2; background: #0e1310; border: 1px dashed #526057; border-radius: 10px; padding: 16px; color: #dce7df; }
.application-selection { display: grid; gap: 14px; }
.application-selection-copy { color: #aeb8b1; line-height: 1.55; margin: 0 0 2px; }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.application-card { min-width: 0; min-height: 166px; border: 1px solid #3b4740; border-radius: 16px; padding: 18px; background: rgba(10, 15, 12, .72); color: #edf4ef; text-align: left; }
button.application-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark status" "mark copy" "action action"; align-items: start; gap: 9px 14px; width: 100%; margin: 0; font-weight: inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
button.application-card:hover { filter: none; transform: translateY(-2px); border-color: rgba(184,244,92,.72); background: linear-gradient(145deg, rgba(184,244,92,.15), rgba(14,19,16,.88)); box-shadow: 0 16px 36px rgba(0,0,0,.25); }
.application-card--active { grid-column: 1 / -1; min-height: 176px; border-color: rgba(184,244,92,.5); background: linear-gradient(135deg, rgba(184,244,92,.13), rgba(14,19,16,.9) 65%); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.application-card--disabled { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark copy" "status status"; align-items: start; gap: 12px; color: #aeb8b1; background: rgba(18,23,20,.68); border-color: #303a34; }
.application-mark { grid-area: mark; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(184,244,92,.16); border: 1px solid rgba(184,244,92,.28); color: #c8fa7d; font-size: 13px; font-weight: 900; letter-spacing: -.02em; }
.application-card--disabled .application-mark { background: #202722; border-color: #39433d; color: #8f9b93; }
.application-status { grid-area: status; justify-self: end; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(184,244,92,.24); border-radius: 999px; padding: 6px 9px; color: #d9fca2; background: rgba(184,244,92,.08); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.application-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b8f45c; box-shadow: 0 0 0 4px rgba(184,244,92,.1); }
.application-card--disabled .application-status { justify-self: start; margin-top: 3px; border-color: #3a443e; background: #202722; color: #9ba69f; }
.application-card--disabled .application-status::before { background: #758078; box-shadow: none; }
.application-copy { grid-area: copy; display: grid; gap: 5px; min-width: 0; }
.application-name { color: #f3f8f4; font-size: 21px; font-weight: 850; letter-spacing: -.025em; }
.application-description { color: #aeb8b1; font-size: 13px; font-weight: 500; line-height: 1.5; }
.application-card--disabled .application-name { color: #bcc5bf; }
.application-card--disabled .application-description { color: #8f9a93; }
.application-action { grid-area: action; display: flex; align-items: center; justify-content: space-between; align-self: end; margin-top: 8px; border-top: 1px solid rgba(184,244,92,.16); padding-top: 14px; color: #d9fca2; font-size: 13px; font-weight: 850; }
.application-action-arrow { font-size: 20px; line-height: 1; transition: transform .18s ease; }
button.application-card:hover .application-action-arrow { transform: translateX(4px); }
.application-note { display: flex; align-items: flex-start; gap: 9px; margin: 1px 0 0; color: #87938b; font-size: 12px; line-height: 1.5; }
.application-note::before { content: "i"; flex: 0 0 auto; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border: 1px solid #47524b; border-radius: 50%; color: #aab5ae; font-size: 10px; font-weight: 800; }
#reset-button { margin-top: 18px; }
.notice { margin-top: 18px; padding: 12px; border-radius: 10px; background: rgba(184,244,92,.1); border: 1px solid rgba(184,244,92,.3); color: #dafaab; }
.notice.error { background: rgba(255,91,91,.1); border-color: rgba(255,91,91,.35); color: #ffadad; }
.hidden { display: none !important; }
@media (max-width: 840px) { .shell { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; } h1 { font-size: 46px; } }
@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1120px); padding: 24px 0; }
  .card { border-radius: 19px; padding: 24px 18px; }
  .success-heading { grid-template-columns: 48px minmax(0, 1fr); gap: 13px; }
  .success-mark { width: 48px; height: 48px; font-size: 27px; }
  .success-heading h2 { font-size: 26px; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card--active { grid-column: auto; }
  pre { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  button.application-card, .application-action-arrow { transition: none; }
  .login-progress-spinner { animation: none; border-color: rgba(184,244,92,.35); border-top-color: #b8f45c; }
  .login-progress-track i { left: 0; width: 100%; opacity: .55; animation: none; }
}
