@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0A0D12;
  --surface: #12161D;
  --border: #232A35;
  --text: #E6E9EE;
  --text-muted: #8891A1;
  --text-faint: #5C6472;
  --accent: #E3A130;
  --accent-strong: #F2B94A;
  --negative: #E0616B;
  --negative-soft: rgba(224, 97, 107, 0.14);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F2F3F6;
    --surface: #FFFFFF;
    --border: #E1E4E9;
    --text: #171B22;
    --text-muted: #5B6472;
    --text-faint: #8A93A1;
    --accent: #B87A1B;
    --accent-strong: #96620F;
    --negative: #C43D48;
    --negative-soft: rgba(196, 61, 72, 0.12);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px;
}
.auth-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 18px;
}
.auth-card h1 { font-size: 17px; margin: 0 0 14px; }
.auth-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 14px 0 6px;
}
input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(155deg, var(--accent-strong), var(--accent) 70%);
  color: #0A0D12;
  border: none;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
}
.password-toggle:hover { color: var(--text); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--text-faint);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.btn-google:hover { border-color: var(--text-faint); }

.auth-status {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  min-height: 16px;
}
.auth-status.is-error { color: var(--negative); }

.auth-qr { display: flex; justify-content: center; margin: 14px 0; }
.auth-qr svg { width: 180px; height: 180px; }
.auth-secret-label { font-size: 11.5px; margin-bottom: 4px; }
.auth-secret {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-all;
}
