@import url('./fonts.css');
@import url('./tokens.css');

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  min-height: 100svh;
  margin: 0;
  padding: 32px 24px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--canvas) url('./login-background.png') center / cover no-repeat;
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }
button, input { font: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.login { width: 100%; max-width: 352px; }
.wordmark { margin-bottom: 28px; font: 600 30px/1 var(--font); font-variant-numeric: normal; letter-spacing: -.05em; }
h1 { margin: 0 0 32px; font-size: 27px; line-height: 1.2; font-weight: 550; letter-spacing: -.025em; }
.field { margin-bottom: 20px; }
.field > label { display: block; margin-bottom: 8px; font-size: 14px; }
.input-wrap { position: relative; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}
.field input:hover, .field input:focus { border-color: var(--text-secondary); }
.field input::placeholder { color: var(--text-muted); opacity: 1; }
.input-wrap input { padding-right: 58px; }
.password-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--motion-fast), background-color var(--motion-fast);
}
.password-toggle:hover { background: var(--surface-hover); color: var(--text); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.eye-slash { stroke-dasharray: 23; stroke-dashoffset: 23; transition: stroke-dashoffset var(--motion-state) var(--ease); }
.password-toggle[aria-pressed=true] .eye-slash { stroke-dashoffset: 0; }
.button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 1px solid var(--action);
  border-radius: var(--radius-sm);
  background: var(--action);
  color: var(--action-text);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--motion-fast), transform var(--motion-fast) var(--ease);
}
.button:not(:disabled) { cursor: pointer; }
.button:not(:disabled):hover { background: #ffffff; }
.button:not(:disabled):active { transform: translateY(1px); }
.button:disabled { background: #cccccc; border-color: #cccccc; color: #333333; cursor: not-allowed; }
.form-note { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.account-name { margin: 0 0 24px; }
.text-link { color: var(--text); text-underline-offset: 4px; }
