:root {
  --brand: #004eff;
  --brand-dark: #0038bd;
  --ink: #101828;
  --muted: #667085;
  --line: #dfe3ea;
  --danger: #b42318;
  --surface: #ffffff;
  --background: #f4f6fb;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.1);
}

.brand { display: flex; justify-content: center; margin-bottom: 20px; }

.logo {
  width: 84px;
  height: 84px;
  display: block;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 78, 255, 0.25);
}

.view h1 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
  text-align: center;
}

.status { margin: 0 0 16px; color: var(--muted); text-align: center; }

.hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.command {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f2f5ff;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  text-align: center;
  word-break: break-all;
}

.form { display: flex; flex-direction: column; }

.field { margin-bottom: 6px; font-size: 14px; font-weight: 550; color: #344054; }

input {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 78, 255, 0.15); }

.button {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary { background: var(--brand); color: #fff; }

.button-primary:hover { background: var(--brand-dark); }

.button-secondary { background: #fff; color: var(--ink); border-color: var(--line); }

.button-secondary:hover { border-color: var(--brand); color: var(--brand); }

.button[disabled] { opacity: 0.6; cursor: default; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.link {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.link:hover { text-decoration: underline; }

.error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3f2;
  color: var(--danger);
  font-size: 14px;
}

noscript .status { margin-top: 16px; }
