/* Auth pages — depends on CSS variables defined in marketing.css */

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Brand panel (left) ── */
.auth-brand {
  background: var(--plum);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,98,45,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(122,140,110,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.auth-brand-logo span {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--terra);
  border-radius: 50%;
  margin-left: 2px;
}

.auth-brand-body { position: relative; z-index: 1; }

.auth-brand-word {
  font-family: 'Libre Baskerville', serif;
  font-size: 120px;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: -20px;
  display: block;
}

.auth-tagline {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}

.auth-tagline em {
  font-style: italic;
  font-weight: 400;
  color: var(--terra-light);
}

.auth-brand-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* ── Form panel (right) ── */
.auth-panel {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}

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

.auth-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Flash */
.auth-flash {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-flash--error {
  background: #fdf0ed;
  border: 1px solid var(--blush);
  color: var(--terra);
}

.auth-flash--notice {
  background: #edf3ed;
  border: 1px solid #c4d4b8;
  color: #4a6b42;
}

/* Fields */
.auth-field { margin-bottom: 20px; }

.auth-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.auth-input:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(61,31,53,0.08);
}

.auth-input::placeholder { color: var(--muted); opacity: 0.6; }

/* Submit */
.auth-submit {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--plum);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.auth-submit:hover {
  background: var(--terra);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61,31,53,0.25);
}

/* Bottom links */
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.auth-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover { color: var(--plum); }

.auth-link--accent {
  color: var(--terra);
  font-weight: 500;
}

.auth-link--accent:hover { color: var(--terra-light); }

.auth-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* Mobile */
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 100svh; }
  .auth-brand { display: none; }
  .auth-panel { padding: 48px 24px; align-items: flex-start; padding-top: 72px; }
}
