/* Auth pages — sign up / log in */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 24px;
  position: relative;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
  padding: 60px 24px 100px;
}
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.legal-wrap .auth-logo {
  margin-bottom: 40px;
}
.legal-wrap h1 {
  font-family: "Instrument Serif", serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 8px;
}
.legal-updated {
  font-size: 13px;
  color: var(--muted-dark);
  margin: 0 0 40px;
}
.legal-wrap h2 {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin: 40px 0 14px;
}
.legal-wrap p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.legal-wrap ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-wrap li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-wrap a {
  color: var(--olive);
  text-decoration: underline;
}
.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted-dark);
  text-decoration: underline;
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 24px;
}
.auth-logo img {
  height: 22px;
  filter: brightness(0);
  opacity: 0.88;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--paper-soft);
  border: 1px solid rgba(28, 29, 24, 0.08);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(28, 29, 24, 0.06);
}

.auth-card h1 {
  font-family: "Instrument Serif", serif;
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
}

.auth-sub {
  color: var(--muted-dark);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
}

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

.auth-field label {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(28, 29, 24, 0.14);
  background: #fff;
  color: var(--ink);
  outline: none;
}
.auth-card input:focus {
  border-color: var(--olive);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-dark);
  font-weight: 400;
  cursor: pointer;
}
.auth-checkbox input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.auth-checkbox a {
  color: var(--olive);
  text-decoration: underline;
}
.auth-checkbox a:hover {
  color: var(--ink);
}

.auth-password-wrap {
  position: relative;
}
.auth-password-wrap input {
  padding-right: 42px;
}
.auth-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: var(--muted-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.auth-eye-btn:hover { color: var(--ink); }
.auth-eye-btn svg { width: 18px; height: 18px; }

.auth-forgot {
  text-align: right;
  margin: 6px 0 0;
}
.auth-forgot a {
  font-size: 12px;
  color: var(--muted-dark);
  text-decoration: underline;
}
.auth-forgot a:hover { color: var(--olive); }

.auth-error {
  color: #a13d3d;
  font-size: 13px;
  min-height: 18px;
  margin: 0;
}

.auth-submit {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.auth-submit:disabled { opacity: 0.6; cursor: default; }

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted-dark);
  margin: 24px 0 0;
}
.auth-switch a {
  color: var(--olive);
  font-weight: 500;
  text-decoration: underline;
}

.auth-card-success .auth-submit {
  color: #fff;
  text-decoration: none;
}
