:root {
  --auth-bg: #f7f7f5;
  --auth-panel: #fff;
  --auth-text: #20201f;
  --auth-muted: #73726c;
  --auth-border: #deded9;
  --auth-border-strong: #c9c8c2;
  --auth-accent: #0d7c66;
  --auth-danger: #c63c35;
}

.auth-page { color: var(--auth-text); background: var(--auth-bg); }
.auth-page .app-main { min-height: calc(100vh - 70px); }

.auth-shell {
  min-height: calc(100vh - 70px);
  padding: 56px 20px 80px;
  display: grid;
  place-items: start center;
}

.auth-card {
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-panel);
  box-shadow: 0 1px 2px rgba(25, 25, 22, .025);
}

.auth-card-head { margin-bottom: 25px; text-align: center; }
.auth-mark {
  width: 38px;
  height: 38px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
}
.auth-mark img { width: 100%; height: 100%; object-fit: contain; }

.auth-card h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: 22px;
  font-weight: 630;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.auth-card-head p,
.auth-result > p {
  margin: 9px auto 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { color: #4e4d48; font-size: 12px; font-weight: 560; }
.auth-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--auth-border);
  border-radius: 9px;
  outline: 0;
  color: var(--auth-text);
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.auth-field input:hover { border-color: var(--auth-border-strong); }
.auth-field input:focus { border-color: #94c6ba; box-shadow: 0 0 0 3px rgba(13, 124, 102, .09); }

.auth-primary,
.auth-secondary {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 590;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.auth-form .auth-primary { width: 100%; margin-top: 3px; }
.auth-primary { color: #fff; background: var(--auth-text); }
.auth-primary:hover { color: #fff; background: #343431; }
.auth-secondary { border-color: var(--auth-border); color: #4f4e49; background: #fff; }
.auth-secondary:hover { border-color: var(--auth-border-strong); color: var(--auth-text); background: #f4f4f1; }
.auth-primary:focus-visible,
.auth-secondary:focus-visible { outline: 2px solid rgba(13, 124, 102, .32); outline-offset: 2px; }

.auth-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.auth-links-center { justify-content: center; }
.auth-links a { color: #5f5e58; text-decoration: none; }
.auth-links a:hover { color: var(--auth-text); text-decoration: underline; text-underline-offset: 3px; }

.auth-card .alert {
  margin: -7px 0 18px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.55;
}

.auth-result { padding-block: 42px; text-align: center; }
.auth-result-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}
.auth-result-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-result-icon.is-success { color: var(--auth-accent); background: #e8f5f1; }
.auth-result-icon.is-error { color: var(--auth-danger); background: #fff0ef; }
.auth-result > p { margin-bottom: 24px; }

@media (max-width: 520px) {
  .auth-shell { padding: 28px 12px 52px; }
  .auth-card { padding: 24px 20px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field input, .auth-primary, .auth-secondary { transition: none; }
}
