:root {
  --bg: #f5f5f1;
  --surface: #fff;
  --ink: #171816;
  --muted: #747872;
  --line: #dedfd9;
  --accent: #345b45;
  --accent-soft: #e4ece6;
  --danger: #a53d35;
  --success: #2e7049;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(24, 30, 25, 0.13);
  --font:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 650;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.button.wide {
  width: 100%;
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.brand-light .brand-mark {
  background: #fff;
  color: #27352c;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 750;
}
.muted {
  color: var(--muted);
}
label {
  font-size: 13px;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  outline: 0;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 91, 69, 0.15);
  outline: none;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1fr;
}
.auth-art {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f6ed;
  background:
    linear-gradient(150deg, rgba(27, 44, 34, 0.12), rgba(16, 31, 23, 0.82)),
    url(../icons/auth-texture.svg), #304d3b;
  background-size: cover;
}
.auth-art h1 {
  font-family: Georgia, serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 12px 0 24px;
}
.auth-art p:not(.eyebrow) {
  max-width: 430px;
  color: #dae3dc;
  font-size: 18px;
  line-height: 1.55;
}
.auth-caption {
  font-size: 12px;
  color: #cbd6ce;
}
.auth-form {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-form {
  width: min(420px, 100%);
}
.login-form h2 {
  font-size: 31px;
  letter-spacing: -0.035em;
  margin: 0;
}
.login-form > p {
  margin: 10px 0 30px;
}
.login-form label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.notice {
  padding: 12px;
  border-radius: 10px;
}
.notice.error {
  color: #812f29;
  background: #f9e8e5;
}
.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 9px;
}
.toast {
  background: #20231f;
  color: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}
.toast.error {
  background: #843c35;
}
.toast button {
  margin-left: 16px;
  border: 0;
  background: transparent;
  color: #d9eadc;
  font-weight: 750;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(15, 18, 15, 0.43);
}
.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-actions {
  justify-content: flex-end;
}
.confirm-dialog {
  width: min(430px, calc(100% - 32px));
  padding: 26px;
}
.confirm-dialog h3 {
  margin-top: 0;
}
.confirm-dialog p {
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    min-height: 100vh;
  }
  .toasts {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
