@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

/* ============================================================================
   AUTH PAGES - Login / Register
   ============================================================================ */

body.auth-shell {
  --auth-bg:var(--t-surf, #020405);
  --auth-panel: var(--t-surf, rgba(6,9,12,.94));
  --auth-panel-strong:var(--t-surf, #070a0d);
  --auth-panel-soft:var(--t-surf, rgba(255, 255, 255, .035));
  --auth-line:var(--t-line, rgba(255, 255, 255, .105));
  --auth-line-strong:var(--t-line, rgba(255, 255, 255, .2));
  --auth-text:var(--t-text, #f5f8fb);
  --auth-muted:var(--t-muted, #a4adb5);
  --auth-muted-soft:var(--t-muted, #6f7a83);
  /* HorrorJunk: neutral-heller Akzent statt Blau */
  --auth-accent: #e6eaee;
  --auth-accent-strong: #ffffff;
  --auth-button: #f0f4f7;
  --auth-button-text:var(--t-text, #05080b);
  --auth-shadow: 0 28px 80px rgba(0, 0, 0, .58);
  --auth-hero-image: url("/cdn/articles/hero-ghostface.webp");
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, .05), transparent 30%),
    linear-gradient(135deg, #010203 0%, #05080b 45%, #010203 100%);
  color: var(--auth-text);
  font-family: var(--font-main, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
}

body.auth-shell--watchjunk {
  --auth-hero-image: url("/cdn/articles/hero-walking-dead.webp");
  --auth-accent:var(--hj-acid);
  --auth-accent-strong: #9fb0bd;
  --auth-muted:var(--t-muted, #aeb6bd);
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  isolation: isolate;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 18%, transparent 82%, rgba(255, 255, 255, .025)),
    radial-gradient(circle at 54% 100%, color-mix(in srgb, var(--hj-acid-2) 6%, transparent), transparent 34%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(24px, 4vw, 44px);
  overflow: hidden;
  padding: clamp(34px, 4vw, 64px) clamp(28px, 5vw, 74px) clamp(28px, 4vw, 48px);
  color: var(--auth-text);
  isolation: isolate;
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.auth-brand::before {
  background-image: var(--auth-hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(.72) contrast(1.06) brightness(.78);
}

.auth-brand::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2,4,5,.98) 0%, rgba(2,4,5,.9) 30%, rgba(2,4,5,.58) 68%, rgba(2,4,5,.88) 100%),
    linear-gradient(180deg, rgba(2,4,5,.68) 0%, rgba(2,4,5,.18) 38%, rgba(2,4,5,.92) 100%);
}

.auth-brand__logo {
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.auth-brand__logo--image {
  display: inline-flex;
  align-items: center;
}

.auth-brand__logo--image img {
  display: block;
  width: clamp(112px, 10vw, 154px);
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55));
}

.auth-brand__logo-line {
  display: block;
  font-family: "Anton", Impact, "Arial Black", "Roboto Condensed", Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: .9;
  color:var(--t-text, #fff);
  letter-spacing: 0;
}

.auth-brand__logo-line--accent {
  color: var(--auth-accent);
}

.auth-brand__pitch {
  align-self: center;
  max-width: 570px;
}

.auth-brand__kicker {
  margin: 0 0 16px;
  color: var(--auth-muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-brand__pitch h1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 22px;
  color:var(--t-text, #fff);
  font-family: "Anton", Impact, "Arial Black", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(2.85rem, 4.8vw, 4.9rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.auth-brand__pitch-accent {
  color: var(--auth-accent);
}

.auth-brand__pitch p:not(.auth-brand__kicker) {
  max-width: 430px;
  margin: 0;
  color:var(--t-text, #d1d7dc);
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 1.62;
}

.auth-brand__features {
  align-self: end;
  display: grid;
  gap: 20px;
  max-width: 430px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-brand__features li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.auth-brand__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: var(--auth-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.auth-brand__icon svg {
  width: 21px;
  height: 21px;
}

.auth-brand__features strong {
  display: block;
  color:var(--t-text, #fff);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.18;
  text-transform: uppercase;
}

.auth-brand__features small {
  display: block;
  margin-top: 4px;
  color:var(--t-text, #b4bdc4);
  font-size: .83rem;
  line-height: 1.32;
}

.auth-brand__copy {
  margin: 0;
  color: rgba(214, 221, 226, .7);
  font-size: .76rem;
  line-height: 1.55;
}

.auth-card {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 74px) clamp(30px, 5vw, 72px);
  border-left: 1px solid rgba(255, 255, 255, .07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, .022), transparent 42%),
    var(--auth-panel);
  box-shadow: var(--auth-shadow);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: clamp(28px, 4vw, 56px) clamp(18px, 4vw, 44px);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .006));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.auth-tabs {
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto clamp(26px, 4vh, 42px);
  border-bottom: 1px solid var(--auth-line);
}

.auth-tab {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--auth-muted);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .16s ease, background .16s ease;
}

.auth-tab svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.auth-tab:hover,
.auth-tab:focus-visible {
  color:var(--t-text, #fff);
}

.auth-tab.is-active {
  color:var(--t-text, #fff);
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--auth-accent);
  box-shadow: 0 0 22px rgba(255, 255, 255, .14);
}

.auth-form {
  width: 100%;
  max-width: 500px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.auth-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.auth-field > span {
  color:var(--t-text, #d9dee2);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.auth-field > span em {
  color: var(--auth-muted-soft);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.auth-input {
  position: relative;
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .014)),
    var(--t-surf, rgba(1,3,5,.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.auth-input:focus-within {
  border-color:var(--t-line, rgba(255,255,255,.28));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)),
    var(--t-surf, rgba(4,8,12,.72));
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .045),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.auth-input__icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-right: 13px;
  color: var(--auth-muted);
}

.auth-input input {
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color:var(--t-text, #fff);
  font: inherit;
  font-size: .98rem;
  font-weight: 650;
}

.auth-input input::placeholder {
  color: rgba(174, 182, 189, .72);
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color:var(--t-text, #fff);
  caret-color:var(--t-text, #fff);
  box-shadow: 0 0 0 1000px #090d12 inset;
}

.auth-input__toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-left: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}

.auth-input__toggle:hover,
.auth-input__toggle:focus-visible {
  color:var(--t-text, #fff);
  background: rgba(255, 255, 255, .06);
}

.auth-input__toggle svg {
  width: 18px;
  height: 18px;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -2px;
}

.auth-check {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color:var(--t-text, #c1c8ce);
  font-size: .88rem;
  line-height: 1.25;
  cursor: pointer;
}

.auth-check input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--auth-accent-strong);
  cursor: pointer;
}

.auth-link {
  color:var(--t-text, #dbe3ea);
  font-size: .88rem;
  font-weight: 760;
  text-decoration: none;
  text-underline-offset: 4px;
}

.auth-link:hover,
.auth-link:focus-visible {
  color:var(--t-text, #fff);
  text-decoration: underline;
}

.auth-submit {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(205, 214, 221, .95));
  color: var(--auth-button-text);
  font: inherit;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 18px 34px var(--t-surf, rgba(0,0,0,.34)),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 22px 38px var(--t-surf, rgba(0,0,0,.42)),
    inset 0 1px 0 rgba(255, 255, 255, .82);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .64;
  transform: none;
}

.auth-submit svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin: 6px 0 0;
  color: var(--auth-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-line);
}

.auth-divider span {
  min-width: 0;
}

.auth-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-provider {
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .014)),
    rgba(255, 255, 255, .016);
  color:var(--t-text, #fff);
  font-size: .9rem;
  font-weight: 780;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}

.auth-provider:hover,
.auth-provider:focus-visible {
  border-color: var(--auth-line-strong);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-1px);
}

.auth-provider svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.auth-foot {
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: .9rem;
  line-height: 1.45;
  text-align: center;
}

.auth-page--single {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 40px 16px;
}

.auth-page--single::before {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--hj-acid-2) 8%, transparent), transparent 34%),
    linear-gradient(135deg, #010203, #06090d 48%, #010203);
}

.auth-card--center {
  width: min(100%, 560px);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
}

.auth-card--center::before {
  display: none;
}

.auth-brand__logo--centered {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 28px;
}

.auth-status {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.auth-status__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
}

.auth-status__icon svg {
  width: 32px;
  height: 32px;
}

.auth-status--ok .auth-status__icon {
  background: rgba(34, 197, 94, .16);
  color:var(--t-muted, #4ade80);
}

.auth-status--err .auth-status__icon {
  background: rgba(255, 77, 77, .16);
  color:var(--t-muted, #ff6b6b);
}

.auth-status__icon--info {
  background: rgba(255, 255, 255, .08);
  color: var(--auth-accent);
}

.auth-status h1 {
  margin: 0;
  color:var(--t-text, #fff);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.auth-status p {
  margin: 0;
  color:var(--t-text, #c0c8cf);
  font-size: .98rem;
  line-height: 1.55;
}

.auth-status .auth-submit {
  min-width: 220px;
  margin-top: 16px;
}

.auth-submit--outline {
  border-color: var(--auth-line-strong);
  background: transparent;
  color:var(--t-text, #fff);
  box-shadow: none;
}

.auth-submit--outline:hover,
.auth-submit--outline:focus-visible {
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

.auth-resend {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.auth-resend__status {
  min-height: 1.2em;
  margin: 0;
  color:var(--t-text, #c0c8cf);
  font-size: .85rem;
}

.auth-resend__status.is-ok {
  color:var(--t-muted, #4ade80);
}

@media (max-width: 1180px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(400px, .88fr);
  }

  .auth-brand {
    padding-left: 42px;
    padding-right: 42px;
  }

  .auth-brand__pitch h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  }

  .auth-card {
    padding-left: 34px;
    padding-right: 34px;
  }
}

@media (max-width: 900px) {
  .auth-page {
    display: block;
    min-height: 100vh;
  }

  .auth-brand {
    min-height: 48vh;
    grid-template-rows: auto auto auto;
    gap: 26px;
    padding: 30px clamp(22px, 5vw, 42px) 28px;
  }

  .auth-brand__pitch {
    align-self: end;
    max-width: 640px;
    padding-top: 48px;
  }

  .auth-brand__pitch h1 {
    font-size: clamp(2.25rem, 9vw, 4rem);
  }

  .auth-brand__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .auth-brand__features li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth-brand__copy {
    display: none;
  }

  .auth-card {
    min-height: auto;
    padding: 34px clamp(22px, 5vw, 42px) 56px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-left: 0;
    box-shadow: none;
  }

  .auth-card::before {
    inset: 18px clamp(12px, 4vw, 28px);
  }
}

@media (max-width: 620px) {
  .auth-brand {
    min-height: 54vh;
  }

  .auth-brand__logo--image img {
    width: 118px;
  }

  .auth-brand__pitch {
    padding-top: 24px;
  }

  .auth-brand__kicker {
    margin-bottom: 12px;
    font-size: .7rem;
  }

  .auth-brand__pitch p:not(.auth-brand__kicker) {
    font-size: .96rem;
  }

  .auth-brand__features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .auth-brand__features li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .auth-brand__icon {
    width: 40px;
    height: 40px;
  }

  .auth-card {
    padding-top: 30px;
  }

  .auth-tabs {
    margin-bottom: 28px;
  }

  .auth-tab {
    min-height: 52px;
    gap: 8px;
    font-size: .76rem;
    letter-spacing: .045em;
  }

  .auth-tab svg {
    width: 18px;
    height: 18px;
  }

  .auth-form {
    gap: 16px;
  }

  .auth-input {
    height: 54px;
  }

  .auth-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-divider {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-divider::before,
  .auth-divider::after {
    display: none;
  }

  .auth-providers {
    grid-template-columns: 1fr;
  }

  .auth-card--center {
    padding: 38px 24px;
  }
}

@media (max-width: 390px) {
  .auth-brand,
  .auth-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-brand__pitch h1 {
    font-size: 2.1rem;
  }

  .auth-submit {
    min-height: 54px;
    padding: 0 16px;
    font-size: .82rem;
  }
}
