:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  --primary: #bfff00;
  --bg: #111111;
  --surface: #1a1a1a;
  --muted: #777777;
  --text: #ffffff;
  --text-soft: #cccccc;
  --border: #2a2a2a;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}

main {
  width: min(440px, calc(100% - 2rem));
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 0.35rem;
}

.brand-tag {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-label {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.centered {
  text-align: center;
}

.text-left {
  text-align: left;
}

.status-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: #252525;
  color: var(--muted);
}

.status-icon.ok {
  color: var(--primary);
}

.status-icon.err {
  color: #ff6b6b;
}

button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

button.primary,
button[type='submit'] {
  background: var(--primary);
  color: var(--bg);
}

button.secondary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid #333333;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #333333;
  background: var(--bg);
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(191, 255, 0, 0.45);
  border-color: #555555;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: #aaaaaa;
  font-size: 0.9rem;
  text-align: left;
}

.error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: left;
}

.hidden {
  display: none;
}

.page-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.page-footer a {
  color: var(--primary);
  text-decoration: none;
}

.device-box {
  text-align: left;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.device-box strong {
  color: #fff;
}

.field {
  position: relative;
  margin-bottom: 0.85rem;
}

.field input {
  padding-right: 2.5rem;
}

.toggle-pw {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: auto;
  padding: 0.25rem 0.35rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 0;
}

form {
  margin-top: 1rem;
  text-align: left;
}
