/* Full-page sign in / sign up (/login/, /register/): artwork on the left, form card on the right. */
:root {
  /* Same dark as the background of the artwork, so the image and the form side read as one surface. */
  --ka-bg: #111419;
  --ka-side: #111419;
  --ka-card: rgba(255, 255, 255, 0.045);
  --ka-border: rgba(255, 255, 255, 0.10);
  --ka-field: rgba(0, 0, 0, 0.30);
  --ka-text: #e8eaf0;
  --ka-muted: #9aa1b2;
  --ka-accent: #8B48B5;
  --ka-accent-2: #6A348A;
  --ka-error: #ff6b6b;
  --ka-ok: #3ddc84;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.zombieAuthPage {
  background: var(--ka-bg);
  color: var(--ka-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.kaWrap { display: flex; min-height: 100vh; min-height: 100dvh; }

/* Left: artwork */
.kaArt {
  flex: 0 0 42%;
  position: relative;
  background: var(--ka-side) url("/images/auth/zombie-login.png") center top / cover no-repeat;
}
/* Fades the artwork into the page on the right and at the bottom (no visible edge). */
.kaArt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 20, 25, 0) 55%, rgba(17, 20, 25, 0.75) 82%, var(--ka-side) 100%),
    linear-gradient(180deg, rgba(17, 20, 25, 0) 55%, rgba(17, 20, 25, 0.85) 100%);
}
.kaArt_logo { position: absolute; left: 36px; top: 30px; z-index: 1; display: inline-flex; }
.kaArt_logo img { height: 44px; width: auto; display: block; }
.kaArt_tag {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  z-index: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.kaArt_tag span { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--ka-muted); letter-spacing: 0; }

/* Right: form */
.kaSide {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  background: var(--ka-side);
}
.kaTop { display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; gap: 12px; }
.kaTop_logo { display: none; }
.kaTop_logo img { height: 38px; width: auto; display: block; }
.kaBack { color: var(--ka-muted); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.kaBack:hover { color: #fff; }
.kaBack svg { width: 16px; height: 16px; }
.kaCenter { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 32px 40px; }

.kaCard {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ka-border);
  border-radius: 18px;
  padding: 36px 34px 30px;
  box-shadow: 0 34px 72px -34px rgba(0, 0, 0, 0.8);
}
.kaCard--wide { width: min(620px, 100%); }
.kaTitle { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.kaSwitch { margin: 0 0 24px; color: var(--ka-muted); }
.kaSwitch a, .kaLink { color: #7fa6ff; text-decoration: none; font-weight: 600; }
.kaSwitch a:hover, .kaLink:hover { color: #a9c3ff; text-decoration: underline; }

.kaForm { display: flex; flex-direction: column; gap: 14px; }
.kaGrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kaField { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kaField label, .kaLabelRow { font-weight: 600; font-size: 13px; color: #cfd3dd; }
.kaLabelRow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kaLabelRow .kaLink { font-size: 12.5px; font-weight: 500; }
.kaReq { color: #7fa6ff; }
.kaField input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* no zoom on iOS */
  color: var(--ka-text);
  background: var(--ka-field);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.kaField input::placeholder { color: #6c7385; }
.kaField input:focus { border-color: rgba(47, 107, 255, 0.8); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18); background: rgba(0, 0, 0, 0.36); }
.kaPw { position: relative; display: block; }
.kaPw input { padding-right: 46px; }
.kaEye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ka-muted);
  cursor: pointer;
}
.kaEye:hover, .kaEye:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.06); outline: none; }
.kaEye svg { width: 18px; height: 18px; }
.kaEye .kaEye_off { display: none; }
.kaEye[aria-pressed="true"] .kaEye_on { display: none; }
.kaEye[aria-pressed="true"] .kaEye_off { display: block; }

/* Spam trap: invisible to people, bots fill it in. */
.kaHp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.kaChecks { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.kaCheck { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.kaCheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kaCheck_box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--ka-field);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.kaCheck_box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.kaCheck input:checked + .kaCheck_box { background: var(--ka-accent); border-color: var(--ka-accent); }
.kaCheck input:checked + .kaCheck_box svg { opacity: 1; }
.kaCheck input:focus-visible + .kaCheck_box { box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.3); }
.kaCheck_txt { font-weight: 500; color: #cfd3dd; }

.kaMsg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.kaMsg:empty { display: none; }
.kaMsg--error { color: #ffd2d2; background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.35); }
.kaMsg--ok { color: #c9f7dc; background: rgba(61, 220, 132, 0.10); border: 1px solid rgba(61, 220, 132, 0.35); }

.kaBtn {
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--ka-accent);
  transition: background 0.15s, transform 0.05s;
}
.kaBtn:hover { background: #255fe8; }
.kaBtn:active { transform: translateY(1px); }
.kaBtn[disabled] { opacity: 0.65; cursor: default; filter: none; }

.kaDiv { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; color: var(--ka-muted); font-size: 12.5px; }
.kaDiv::before, .kaDiv::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.10); }
.kaOauthRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kaOauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: filter 0.15s, transform 0.05s;
}
.kaOauth svg { width: 18px; height: 18px; flex: 0 0 auto; }
.kaOauth:hover { filter: brightness(1.1); }
.kaOauth:active { transform: translateY(1px); }
.kaOauth--discord { background: #5865f2; }
.kaOauth--google { background: #fff; color: #1f2329; }

.kaFoot { padding: 0 32px 22px; color: #6c7385; font-size: 12.5px; text-align: center; }
.kaFoot a { color: var(--ka-muted); text-decoration: none; }
.kaFoot a:hover { color: #fff; }

/* Tablet / phone: no side artwork, the image becomes a soft backdrop behind the card. */
@media (max-width: 900px) {
  .kaArt { display: none; }
  .kaSide {
    background:
      linear-gradient(180deg, rgba(17, 20, 25, 0.55) 0%, var(--ka-side) 340px),
      var(--ka-side) url("/images/auth/zombie-login.png") center top / 100% auto no-repeat;
  }
  .kaTop_logo { display: inline-flex; }
}
@media (max-width: 560px) {
  .kaTop { padding: 16px; }
  .kaCenter { padding: 8px 16px 28px; align-items: flex-start; }
  .kaCard { padding: 26px 20px 22px; border-radius: 16px; }
  .kaGrid2 { grid-template-columns: 1fr; }
  .kaFoot { padding: 0 16px 18px; }
}
