/* =========================================================
   Gaming Hub Auth Layout
   Matches auth_left_preview.html
   ========================================================= */

:root {
  --bg: #0E0E10;
  --card: #111216;
  --ink: #f7f7fb;
  --muted: #a7a9b4;
  --line: rgba(255,255,255,0.13);
  --line-soft: rgba(255,255,255,0.075);
  --yellow: #ffdf00;
  --login-shift-x: -120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.gh-auth-page {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
}

.gh-auth-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(620px, 760px) minmax(360px, 460px);
  justify-content: center;
  gap: clamp(48px, 6vw, 96px);
  background: var(--bg);
}

/* Left side */
.gh-auth-promo {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 68px);
}

.gh-auth-promo-wrap {
  width: min(570px, 100%);
  display: grid;
  gap: 28px;
}

.gh-auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gh-auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
}

.gh-auth-brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

.gh-auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 223, 0, 0.36);
  color: var(--yellow);
  background: rgba(255, 223, 0, 0.055);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.gh-auth-status-pill span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
}

.gh-auth-copy-card {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0,0,0,0.34);
  overflow: hidden;
}

.gh-auth-copy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--yellow), transparent);
  opacity: 0.75;
}

.gh-auth-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #050506;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.gh-auth-copy-card h1 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(56px, 5.2vw, 92px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

.gh-auth-copy-card h1 span {
  color: var(--yellow);
}

.gh-auth-copy-card p {
  max-width: 390px;
  margin: 18px 0 24px;
  color: #d0d1d9;
  font-size: 17px;
  line-height: 1.42;
}

/* Right side */
.gh-auth-panel {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: var(--bg);
}

.gh-auth-card {
  width: min(420px, 100%);
  max-width: 420px;
  padding: 28px !important;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0,0,0,0.3);
  transform: translateX(var(--login-shift-x));
}

.login-container,
.register-container {
  width: 100%;
  min-width: 0;
}

.login-header h2,
.register-header h2 {
  margin: 0 0 6px;
  text-align: center;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.login-header p,
.register-header p {
  margin: 0 0 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
}

.gh-input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  padding: 0 14px;
}

.gh-input::placeholder {
  color: #b9bbca;
}

.gh-input:focus {
  outline: none;
  border-color: rgba(255, 223, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 223, 0, 0.12);
}

.gh-auth-panel .float-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.gh-auth-panel .float-card > * {
  position: relative;
  z-index: 2;
}

/* Buttons / links */
.btn-outline-login,
.btn-register {
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  background-color: transparent;
  font-weight: 1000;
}

.btn-outline-login:hover,
.btn-register:hover {
  color: #000;
  background-color: var(--yellow);
}

.resetpw:hover {
  color: var(--yellow);
}

.no-underline,
.no-underline:hover,
.no-underline:focus {
  text-decoration: none;
}

/* Password show/hide toggle */
.password-wrap {
  position: relative;
}

.password-wrap .gh-input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0.85;
  z-index: 5;
  pointer-events: auto;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle:focus {
  outline: none;
}

/* Stacked layout */
@media (max-width: 1100px) {
  :root {
    --login-shift-x: 0px;
  }

  .gh-auth-hero {
    min-height: 90svh;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 28px;
    padding: 32px 0;
  }

  .gh-auth-promo,
  .gh-auth-panel {
    min-height: auto;
    align-items: flex-start;
    padding: 0 clamp(24px, 4vw, 68px);
  }

  .gh-auth-promo-wrap,
  .gh-auth-card {
    width: min(760px, 100%);
    max-width: 760px;
  }

  .gh-auth-copy-card {
    min-height: auto;
  }

  .gh-auth-copy-card h1 {
    max-width: 680px;
  }

  .gh-auth-copy-card p {
    max-width: 620px;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .gh-auth-hero {
    align-content: center;
    gap: 24px;
    padding: 24px 0;
  }

  .gh-auth-promo,
  .gh-auth-panel {
    padding: 0 16px;
  }

  .gh-auth-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .gh-auth-status-pill {
    white-space: normal;
  }

  .gh-auth-copy-card {
    padding: 22px;
    border-radius: 18px;
  }

  .gh-auth-copy-card h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .gh-auth-copy-card p {
    font-size: 16px;
  }

  .gh-auth-card {
    padding: 22px !important;
    border-radius: 16px;
  }

  .login-header h2,
  .register-header h2 {
    font-size: 23px;
  }
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #d7d7db !important;
  -webkit-box-shadow: 0 0 0 1000px #0f0f12 inset !important;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: #d7d7db;
}