/* ======================================================================
   Hustob Clothier · Auth (login, register, forgot, reset)
   Editorial split layout · refined form fields
   ====================================================================== */

.hc-auth {
  position: relative;
  min-height: clamp(620px, 88vh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--hc-paper);
}

/* ── Visual side ───────────────────────────────────────────────────── */
.hc-auth__visual {
  position: relative;
  overflow: hidden;
  background: var(--hc-ink);
  isolation: isolate;
}
.hc-auth__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200,155,60,.32), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(15,91,74,.45), transparent 55%),
    linear-gradient(135deg, #1A1A1A 0%, #0E0E0E 100%);
  z-index: 0;
}
.hc-auth__visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.5px);
  background-size: 32px 32px;
  z-index: 1;
}
.hc-auth__visual-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.5rem, 5vw, 4rem);
  color: var(--hc-cream);
}
.hc-auth__brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--hc-font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hc-auth__brand::before {
  content: ""; width: 24px; height: 1px; background: var(--hc-gold-soft);
}
.hc-auth__display {
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
  font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 30;
  max-width: 14ch;
}
.hc-auth__display em {
  font-style: italic;
  color: var(--hc-gold-soft);
  font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 100;
}
.hc-auth__credit {
  display: flex; flex-direction: column; gap: .25rem;
  color: rgba(255,255,255,.7);
  font-family: var(--hc-font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hc-auth__credit strong { color: var(--hc-gold-soft); font-weight: 500; }

/* ── Form side ─────────────────────────────────────────────────────── */
.hc-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}
.hc-auth__card {
  width: min(100%, 520px);
}
.hc-auth__eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0 0 1rem;
  color: var(--hc-muted);
  font-family: var(--hc-font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hc-auth__eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--hc-accent);
}
.hc-auth__title {
  margin: 0 0 .55rem;
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--hc-ink);
  font-variation-settings: "opsz" 96, "wght" 420, "SOFT" 30;
}
.hc-auth__title em {
  font-style: italic;
  color: var(--hc-accent-2);
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 100;
}
.hc-auth__subtitle {
  margin: 0 0 2rem;
  color: var(--hc-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Form fields */
.hc-auth__form {
  display: flex; flex-direction: column;
  gap: 1.1rem;
}
.hc-auth__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hc-auth__field {
  display: flex; flex-direction: column;
  gap: .45rem;
}
.hc-auth__field label {
  color: var(--hc-muted);
  font-family: var(--hc-font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hc-auth__field input,
.hc-auth__field select,
.hc-auth__field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  background: var(--hc-cream);
  color: var(--hc-ink);
  font-family: var(--hc-font-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color var(--hc-dur) var(--hc-ease),
              box-shadow var(--hc-dur) var(--hc-ease),
              background var(--hc-dur) var(--hc-ease);
}
.hc-auth__field input::placeholder { color: var(--hc-faint); }
.hc-auth__field input:focus,
.hc-auth__field select:focus,
.hc-auth__field textarea:focus {
  outline: none;
  border-color: var(--hc-ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,14,14,.06);
}

/* Messages */
.hc-auth__message {
  margin: 0 0 .35rem;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.5;
}
.hc-auth__message--error {
  background: rgba(184,92,56,.10);
  border: 1px solid rgba(184,92,56,.3);
  color: #934828;
}
.hc-auth__message--info {
  background: rgba(15,91,74,.08);
  border: 1px solid rgba(15,91,74,.25);
  color: var(--hc-accent-2);
}
.hc-auth__message--success {
  background: rgba(15,91,74,.08);
  border: 1px solid rgba(15,91,74,.3);
  color: var(--hc-accent-2);
}
.hc-auth__message ul { margin: 0; padding-left: 1.1rem; }
.hc-auth__message li { margin-bottom: .25rem; }
.hc-auth__message li:last-child { margin-bottom: 0; }

/* Submit button */
.hc-auth__submit {
  margin-top: .35rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: var(--hc-ink);
  color: var(--hc-cream);
  border: 1px solid var(--hc-ink);
  font-family: var(--hc-font-sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--hc-dur) var(--hc-ease),
              border-color var(--hc-dur) var(--hc-ease),
              transform var(--hc-dur) var(--hc-ease),
              box-shadow var(--hc-dur) var(--hc-ease);
}
.hc-auth__submit:hover, .hc-auth__submit:focus-visible {
  background: var(--hc-accent-2);
  border-color: var(--hc-accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,91,74,.3);
}

/* Footer links */
.hc-auth__foot {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hc-border-soft);
  color: var(--hc-muted);
  font-size: .92rem;
}
.hc-auth__foot a {
  color: var(--hc-ink);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color var(--hc-dur) var(--hc-ease), background-size var(--hc-dur) var(--hc-ease);
}
.hc-auth__foot a:hover, .hc-auth__foot a:focus-visible {
  color: var(--hc-accent-2);
  background-size: 0 1px;
}

/* Fieldsets in register */
.hc-auth__group {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--hc-border-soft);
  border-radius: 14px;
  background: rgba(255,255,255,.4);
}
.hc-auth__group-title {
  margin: 0 0 .25rem;
  color: var(--hc-muted);
  font-family: var(--hc-font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hc-auth { grid-template-columns: 1fr; min-height: auto; }
  .hc-auth__visual {
    min-height: 280px;
    padding: 0;
  }
  .hc-auth__visual-inner {
    padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  }
  .hc-auth__display { font-size: clamp(2rem, 7vw, 3rem); max-width: 18ch; }
  .hc-auth__panel { padding: 2.5rem 1.25rem 4rem; }
}

@media (max-width: 520px) {
  .hc-auth__row { grid-template-columns: 1fr; }
}
