:root {
  --bg: #ffffff;
  --ink: #161410;
  --muted: #5c5c5c;
  --line: #d6d6d6;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --bar: #ffffff;
  --danger: #9b2c2c;
  --danger-bg: #f8e6e6;
  --ok: #1f6b4a;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
}

body {
  font-family: var(--font);
  color: var(--ink);
}

.topbar {
  height: 64px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.12rem;
}

.brand span {
  color: var(--ink);
}

.panel {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
}

.form {
  width: min(100%, 400px);
}

.form__header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
}

.form__header p {
  margin: 0.4rem 0 1.6rem;
  color: var(--muted);
}

.alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--danger-bg);
  color: var(--danger);
}

.alert.is-ok {
  background: #dceee5;
  color: var(--ok);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  color: inherit;
}

.field input:focus {
  outline: 2px solid #2563eb80;
  outline-offset: 1px;
  border-color: var(--accent);
}

.field__password {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.field__password input {
  flex: 1;
}

.ghost {
  height: 46px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.submit {
  width: 100%;
  height: 48px;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.submit:hover {
  filter: brightness(1.06);
}

.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hint {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hint code {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: #f0f0f0;
}
