:root {
  --cx-black: #111111;
  --cx-gold: #f8b521;
  --cx-muted: #6b7280;
  --cx-line: #ececec;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--cx-black);
  background: #fff;
}

.cx-auth {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.cx-auth-visual {
  position: relative;
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  background: #111;
  overflow: hidden;
}

.cx-auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #111;
}

.cx-auth-visual::after {
  content: none;
}

.cx-auth-panel {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.35rem 1.15rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

.cx-auth-panel-center {
  align-items: flex-start;
}

.cx-auth-card {
  width: 100%;
  max-width: 520px;
}

.cx-auth-card.is-wide {
  max-width: 560px;
}

.cx-auth-logo {
  display: block;
  height: 78px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin: 0 auto 0.85rem;
}

.cx-auth-kicker {
  font-family: "Fjalla One", sans-serif;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  color: var(--cx-gold);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  text-align: center;
}

.cx-auth-title {
  font-family: "Fjalla One", sans-serif;
  font-size: 2.05rem;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.cx-auth-lead {
  text-align: center;
  color: var(--cx-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

.cx-auth-card .form-control,
.cx-auth-card .form-select {
  border-radius: 12px;
  border-color: #e5e7eb;
  min-height: 3.15rem;
}

.cx-auth-card .form-control-sm,
.cx-auth-card .form-select-sm {
  min-height: 3.15rem;
  font-size: 1rem;
  padding-top: 1.05rem;
}

.cx-auth-card .form-floating > label {
  font-size: 0.95rem;
}

.cx-auth-card .form-control:focus,
.cx-auth-card .form-select:focus {
  border-color: var(--cx-gold);
  box-shadow: 0 0 0 0.2rem rgba(248, 181, 33, 0.2);
}

.cx-auth-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--cx-gold);
  color: var(--cx-black);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.2rem;
}

.cx-auth-btn:hover {
  background: #e0a30f;
  color: var(--cx-black);
}

.cx-auth-foot {
  text-align: center;
  margin-top: 1.15rem;
  color: var(--cx-muted);
  font-size: 1rem;
}

.cx-auth-foot a {
  color: var(--cx-black);
  font-weight: 700;
  text-decoration: none;
}

.cx-auth-foot a:hover {
  color: var(--cx-gold);
}

.cx-auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.cx-auth-grid .span-2 {
  grid-column: auto;
}

@media (min-width: 576px) {
  .cx-auth-logo {
    height: 88px;
    max-width: 270px;
  }

  .cx-auth-title {
    font-size: 2.25rem;
  }

  .cx-auth-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cx-auth-grid .span-2 {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .cx-auth {
    grid-template-columns: minmax(280px, 42%) 1fr;
    align-items: stretch;
  }

  .cx-auth-visual {
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .cx-auth-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2.35rem 2rem;
  }

  .cx-auth-panel-center {
    align-items: center;
  }

  .cx-auth-logo {
    height: 96px;
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .cx-auth-kicker {
    font-size: 1rem;
  }

  .cx-auth-title {
    font-size: 2.45rem;
  }

  .cx-auth-lead {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
  }
}

.cx-auth-card.is-select {
  max-width: 640px;
}

.cx-auth-invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: -0.4rem 0 1.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
}

.cx-auth-invite strong {
  color: var(--cx-gold);
  margin-left: 0.25rem;
}

.cx-auth-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.cx-auth-choice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: var(--cx-black);
  border: 1px solid var(--cx-line);
  border-radius: 1.25rem;
  padding: 0.7rem 0.7rem 1rem;
  background: #fff;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cx-auth-choice-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  margin-bottom: 0.85rem;
  border-radius: 0.95rem;
  background: #f6f6f7;
  overflow: hidden;
}

.cx-auth-choice-art img {
  width: auto;
  height: 128px;
  max-width: 90%;
  object-fit: contain;
}

.cx-auth-choice-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-muted);
  margin: 0 0.35rem 0.15rem;
}

.cx-auth-choice strong {
  font-family: "Fjalla One", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  margin: 0 0.35rem 0.3rem;
  line-height: 1.15;
}

.cx-auth-choice span {
  color: var(--cx-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0.35rem 0.85rem;
  flex: 1 1 auto;
}

.cx-auth-choice em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0.35rem;
  color: var(--cx-black);
}

.cx-auth-choice em::after {
  content: " →";
}

.cx-auth-choice:hover,
.cx-auth-choice:focus-visible {
  color: var(--cx-black);
  border-color: #111;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.1);
  outline: none;
}

.cx-auth-choice:hover .cx-auth-choice-art,
.cx-auth-choice:focus-visible .cx-auth-choice-art {
  background: #111;
}

.cx-auth-choice:hover em,
.cx-auth-choice:focus-visible em {
  color: var(--cx-gold);
}

@media (min-width: 576px) {
  .cx-auth-choices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .cx-auth-visual {
    height: 140px;
    min-height: 140px;
  }

  .cx-auth-logo {
    height: 70px;
    max-width: 210px;
  }

  .cx-auth-title {
    font-size: 1.85rem;
  }

  .cx-auth-panel {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}
