/* kate: space-indent on; indent-width 2; replace-tabs on; hl CSS; */

body.auth-body {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--fg);
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Card ────────────────────────────────────────── */

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px 36px 32px;
}

/* ── Brand ───────────────────────────────────────── */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.auth-wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* ── Heading ─────────────────────────────────────── */

.auth-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 4px;
}

.auth-sub {
  font-size: 14px;
  color: #78716c;
  margin: 0 0 28px;
}

/* ── Error ───────────────────────────────────────── */

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--urgent-light);
  border: 1px solid color-mix(in srgb, var(--urgent) 30%, transparent);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--urgent);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Form fields ─────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #57534e;
}

.auth-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.auth-field input::placeholder {
  color: #c4bfbb;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth-field-hint {
  font-size: 12px;
  color: #a8a29e;
  margin-top: 1px;
}

/* ── Submit ──────────────────────────────────────── */

.auth-submit {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.01em;
}

.auth-submit:hover {
  background: #0f766e;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.auth-submit:active {
  background: #0d6b63;
}

/* ── Footer links ────────────────────────────────── */

.auth-footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #78716c;
  text-align: center;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Mobile ──────────────────────────────────────── */

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px 24px;
    border-radius: var(--radius-md);
  }
}
