:root{
  --bg: #f3f3f3;
  --bg-white: #ffffff;
  --card: #2c2c2c;
  --text: #111;
  --muted: #cfcfcf;
  --accent: #2ea44f;
  --accent-ink:#1b7c3a;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.auth--login { background: var(--bg-white); }

.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth__wrap {
  width: min(680px, 92vw);
  text-align: center;
}

.auth__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: .02em;
}

.auth-card {
  margin-inline: auto;
  width: min(480px, 92vw);
  background: var(--card);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.8vw, 1.6rem);
  box-shadow: var(--shadow);
}

.auth-card .stack {
  display: grid;
  gap: .8rem;
}

.input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  background: #efefef;
  color: #111;
  font-size: .95rem;
  outline: none;
}
.input::placeholder { color: #6f6f6f; }
.input:focus { outline: 3px solid #cfe9d7; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

.auth__submit {
  margin-top: 1rem;
}

.auth__meta {
  margin-top: .8rem;
  color: #555;
  font-size: .95rem;
}
.auth__meta a {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.auth__meta a:hover { text-decoration: underline; }

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

/* Адаптив */
@media (max-width: 480px){
  .auth-card { padding: 1rem; }
}
