/* Postwordy branded auth (/user, /user/login) */

.sdw-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.sdw-auth {
  width: min(420px, calc(100% - 2rem));
  margin: 8vh auto 3rem;
}

.sdw-auth-brand {
  display: block;
  text-align: center;
  font-family: Fraunces, Palatino, Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--sdw-ink, #1a202c);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sdw-auth-tagline {
  text-align: center;
  color: var(--sdw-muted, #4b5563);
  margin: 0.4rem 0 1.35rem;
  font-size: 0.95rem;
}

.sdw-auth-card {
  background: var(--sdw-cream-panel, #ffffff);
  border: 1px solid var(--sdw-line, #d1e7f0);
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--sdw-ink, #1a202c) 5%, transparent);
}

.sdw-auth-card h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.sdw-auth-form {
  display: grid;
  gap: 0.45rem;
}

.sdw-auth-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.sdw-auth-form input[type="text"],
.sdw-auth-form input[type="email"],
.sdw-auth-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sdw-line, #d1e7f0);
  border-radius: 8px;
  background: var(--bg-white, #ffffff);
  color: var(--sdw-ink, #1a202c);
  font: inherit;
}

.sdw-auth-form input:focus {
  outline: none;
  border-color: var(--sdw-accent, #022345);
  box-shadow: 0 0 0 1px var(--sdw-accent, #022345);
}

.sdw-auth-remember {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500 !important;
  margin: 0.55rem 0 0.25rem !important;
}

.sdw-auth-submit {
  width: 100%;
  margin-top: 0.65rem;
  justify-content: center;
}

.sdw-auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--sdw-muted, #4b5563);
  font-size: 0.92rem;
}

.sdw-auth-switch a {
  color: var(--sdw-accent, #022345);
  font-weight: 600;
  text-decoration: none;
}

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

.sdw-auth-errors {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  list-style: none;
  background: color-mix(in srgb, var(--danger, #9b1c1c) 10%, var(--bg-white, #fff));
  border: 1px solid color-mix(in srgb, var(--danger, #9b1c1c) 32%, var(--bg-white, #fff));
  border-radius: 8px;
  color: var(--danger, #9b1c1c);
  font-size: 0.9rem;
}

.sdw-auth-errors li + li {
  margin-top: 0.25rem;
}

.sdw-auth-success {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  background: color-mix(in srgb, var(--teal-mist, #A4DFF5) 45%, var(--bg-white, #fff));
  border: 1px solid var(--teal-mist, #A4DFF5);
  border-radius: 8px;
  color: var(--sdw-ink, #1a202c);
  font-size: 0.9rem;
}

.sdw-auth-note {
  margin: 0;
  color: var(--sdw-muted, #4b5563);
  line-height: 1.45;
}
