.auth {
  display: grid;
  place-content: center;
  min-height: 60vh;
  padding: 40px 0;
}

.auth-card {
  width: min(420px, 100%);
  background: rgba(22, 26, 34, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(15, 17, 21, 0.2);
  padding: 36px;
  display: grid;
  gap: 24px;
  color: var(--fg);
}

.auth-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.2rem);
}

.auth-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.notice {
  margin: 0;
  font-size: 0.85rem;
  color: #facc15;
}

.field {
  display: grid;
  gap: 8px;
}

.field .label {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 17, 21, 0.6);
  color: var(--fg);
}

.field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
}

.extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember input {
  width: 16px;
  height: 16px;
}

.link {
  color: var(--accent);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.cta {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 24px rgba(14, 165, 233, 0.35);
}

.cta:hover,
.cta:focus {
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.switch {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.switch a {
  color: var(--accent);
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .auth {
    padding: 24px 0;
  }
  .auth-card {
    padding: 28px;
    border-radius: 20px;
  }
}


.form-errors {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}




