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

:root {
  --ink: #16202B;
  --paper: #EDE9DF;
  --paper-dark: #E2DDCF;
  --steel: #7B8592;
  --blue: #2F6FED;
  --green: #3E7A54;
  --red: #B23A2E;
  --slate: #6E7684;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
}
.display { font-family: 'Oswald', sans-serif; letter-spacing: 0.02em; }
.mono { font-family: 'IBM Plex Mono', monospace; }
button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
input {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.logo-box {
  background: var(--ink);
  color: var(--paper);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Oswald', sans-serif;
  flex-shrink: 0;
}

.panel {
  background: #fff;
  border: 1.5px solid var(--ink);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-dark);
}
.panel-head span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin: 0 0 4px;
  display: block;
}
.field {
  width: 100%;
  border: 1.5px solid var(--ink);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.field-row { margin-bottom: 14px; }
.field-wrapper { position: relative; }
.field-wrapper .field { padding-right: 42px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--steel);
  padding: 0;
}
.password-toggle:hover { color: var(--ink); }
.password-toggle svg { width: 19px; height: 19px; }

.btn-dark, .btn-ghost {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { opacity: 0.88; }
.btn-dark:active { transform: translateY(1px); }
.btn-dark:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-dark); }
.btn-dark.full, .btn-ghost.full { width: 100%; text-align: center; }

.error-box {
  border: 1.5px solid var(--red);
  background: #FBEAE7;
  color: var(--red);
  padding: 12px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}
.success-box {
  border: 1.5px solid var(--green);
  background: #E7F1EA;
  color: var(--green);
  padding: 12px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.auth-footer-link {
  text-align: center;
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--steel);
}
.auth-footer-link a { color: var(--ink); }
