:root {
  --accent: #476656;
  --button-background: #587965;
  --button-hover: #4c6b59;
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #283b39;
  background: #eef2ef;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: radial-gradient(ellipse at top, #f9faf7, #eef2ef 75%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  background: #fdfefc;
  border: 1px solid #dce4de;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgb(35 62 49 / 6%);
}
h1 {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}
h2 {
  color: var(--accent);
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.025em;
}
p { margin: 0 0 20px; line-height: 1.6; }
.auth-card > p { text-align: center; color: #52665e; }
form { margin: 0; }
form p { margin: 0 0 18px; }
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #455b50;
}
input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 10px 13px;
  border: 1px solid #c7d3cb;
  border-radius: 8px;
  background: #fff;
  color: #283b39;
  font: inherit;
  font-size: 16px;
}
input:hover { border-color: #91a69a; }
input:focus-visible, button:focus-visible, .button-link:focus-visible {
  outline: 3px solid #aac2b4;
  outline-offset: 3px;
}
button, .button-link {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 11px 16px;
  border: 1px solid var(--button-background);
  border-radius: 8px;
  background: var(--button-background);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover, .button-link:hover { background: var(--button-hover); }
form + form, .home-action + form { margin-top: 12px; }
form:last-child > p:last-child { margin-bottom: 0; }
.notice {
  padding: 12px 14px;
  border: 1px solid #d8decb;
  border-radius: 8px;
  background: #f3f4e9;
  overflow-wrap: anywhere;
  font-size: 14px;
}
@media (max-width: 440px) {
  body { padding: 20px 16px; }
  .auth-card { padding: 28px 24px; }
}



.button-link { display: block; text-align: center; text-decoration: none; line-height: 22px; }
.back-action { margin: 12px 0; }

.password-help { font-size: 13px; line-height: 1.5; }
