:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #07101e;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 5%, rgba(47, 129, 247, .2), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(27, 200, 150, .14), transparent 35%),
    #07101e;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 430px);
  min-width: min(390px, calc(100vw - 36px));
  padding: 26px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: rgba(13, 24, 42, .82);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.brand__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #8bc2ff; background: rgba(47,129,247,.15); }
.brand__icon svg { width: 27px; fill: currentColor; }
.eyebrow { margin: 0 0 3px; color: #8fa1b8; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
h2 { margin: 0 0 8px; font-size: 22px; }
.intro p { margin: 0; color: #99a8ba; line-height: 1.5; }

.view { min-height: 190px; }
.view--center { display: grid; place-items: center; }
.hidden { display: none !important; }

.spinner { width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.12); border-top-color: #5da6ff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-form { display: grid; gap: 10px; margin-top: 25px; }
.login-form label { color: #b7c3d1; font-size: 14px; font-weight: 600; }
.login-form input { width: 100%; height: 52px; padding: 0 15px; color: #fff; background: #091423; border: 1px solid #26364a; border-radius: 14px; outline: none; }
.login-form input:focus { border-color: #4d9df7; box-shadow: 0 0 0 4px rgba(77,157,247,.12); }

.primary, .secondary, .link-button { border: 0; cursor: pointer; }
.primary { height: 52px; margin-top: 5px; color: #06101d; background: #68afff; border-radius: 14px; font-weight: 750; }
.primary:active { transform: translateY(1px); }

.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 15px; }
.status-label { margin: 0 0 7px; color: #91a2b7; font-size: 14px; }
.status-text { margin: 0; font-size: 24px; font-weight: 760; letter-spacing: -.03em; }
.status-hint { min-height: 22px; margin: 4px 0 28px; color: #8495aa; font-size: 14px; }

.switch { position: relative; flex: 0 0 auto; width: 68px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: #344255; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.switch__thumb { position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: #f8fafc; box-shadow: 0 3px 9px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.switch[aria-checked="true"] { background: #38d39f; }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(28px); }
.switch:disabled { cursor: wait; opacity: .55; }

.actions { display: flex; align-items: center; justify-content: space-between; }
.secondary { padding: 10px 14px; color: #c7d3df; background: rgba(255,255,255,.07); border-radius: 11px; }
.link-button { padding: 9px 0; color: #76889d; background: transparent; }
.error { margin: 18px 0 0; padding: 12px 14px; color: #ffb7b7; background: rgba(255,82,82,.1); border: 1px solid rgba(255,82,82,.18); border-radius: 12px; font-size: 14px; line-height: 1.4; }
.footer { margin: 0; color: #52647a; text-align: center; font-size: 12px; }

@media (max-width: 420px) {
  .card { min-width: 0; padding: 22px; border-radius: 24px; }
  .brand { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
