:root {
  color-scheme: light;
  --background: #f6f8fb;
  --panel: #ffffff;
  --text: #121826;
  --muted: #667085;
  --border: #d8e0ea;
  --accent: #0047ab;
  --accent-strong: #000080;
  --error: #b42318;
  --focus: #4f81bd;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 400px);
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(18, 24, 38, 0.08);
}

.brand-mark {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 auto 24px;
}

h1 {
  margin: 0 0 22px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

input::placeholder {
  color: var(--muted);
}

input:focus {
  outline: 3px solid rgba(79, 129, 189, 0.2);
  border-color: var(--focus);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.error-message {
  min-height: 20px;
  margin: 0;
  color: var(--error);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .auth-shell {
    align-items: stretch;
    padding: 16px;
  }

  .auth-panel {
    align-self: center;
    padding: 28px 22px;
  }

  .brand-mark {
    width: 154px;
  }
}
