:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --text: #20231f;
  --text-soft: #626961;
  --border: #d9ddd8;
  --border-strong: #c8cec7;
  --red: #bd2c2c;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
}

button,
input {
  font: inherit;
}

.login-shell {
  width: min(360px, 100%);
}

.login-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(32, 35, 31, 0.1);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  background: #27352d;
  color: #f6faf6;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

header h1,
header p {
  margin: 0;
}

header h1 {
  font-size: 22px;
  line-height: 30px;
}

header p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 11px;
  color: var(--text);
  font-size: 14px;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(40, 100, 220, 0.45);
  outline-offset: 1px;
}

button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #27352d;
  border-radius: 6px;
  background: #27352d;
  color: #fff;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

button svg {
  width: 16px;
  height: 16px;
}

.login-error {
  margin: -8px 0 0;
  color: var(--red);
  font-size: 12px;
  line-height: 18px;
}
