:root {
  --brand-gold: #f9b000;
  --brand-black: #000000;
  --brand-white: #ffffff;
  --card-border: rgba(249, 176, 0, 0.28);
  --card-surface: rgba(11, 11, 11, 0.92);
  --card-shadow: 0 32px 120px rgba(0, 0, 0, 0.55);
  --copy-muted: rgba(255, 255, 255, 0.72);
  --copy-soft: rgba(255, 255, 255, 0.52);
  --success: #7dffb2;
  --error: #ffb3b3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top, rgba(249, 176, 0, 0.22), transparent 34%),
    radial-gradient(circle at bottom, rgba(249, 176, 0, 0.12), transparent 40%),
    var(--brand-black);
  color: var(--brand-white);
  font-family: "Manrope", sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  position: relative;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--card-surface);
  box-shadow: var(--card-shadow);
  padding: 38px 34px 30px;
}

.auth-card__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(249, 176, 0, 0.16);
  filter: blur(44px);
  pointer-events: none;
}

.auth-card__glow--top {
  top: -120px;
  right: -80px;
}

.auth-card__glow--bottom {
  bottom: -140px;
  left: -110px;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.brand-lockup__spotlight {
  width: min(80%, 300px);
  height: auto;
  object-fit: contain;
}

.brand-lockup__scout {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.brand-lockup__mark {
  width: 76px;
  height: 76px;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(249, 176, 0, 0.16), rgba(249, 176, 0, 0.05));
  border: 1px solid rgba(249, 176, 0, 0.22);
}

.brand-lockup__mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-lockup__title-group {
  display: grid;
  justify-items: center;
  gap: 0;
}

.brand-lockup__title-group h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.mode-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-switch__button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--copy-muted);
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.mode-switch__button:hover {
  color: var(--brand-white);
  transform: translateY(-1px);
}

.mode-switch__button.is-active {
  background: linear-gradient(135deg, var(--brand-gold), #ffd56d);
  color: var(--brand-black);
}

.auth-panel {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.domain-form {
  margin-top: 0;
}

.domain-form__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copy-soft);
}

.domain-form__input-wrap {
  position: relative;
  z-index: 2;
}

.domain-form__input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-white);
  padding: 16px 18px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.domain-form__input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.domain-form__input:focus {
  border-color: rgba(249, 176, 0, 0.8);
  box-shadow: 0 0 0 4px rgba(249, 176, 0, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.password-row {
  position: relative;
  z-index: 1;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-12px);
  transition:
    max-height 320ms ease,
    margin-top 320ms ease,
    opacity 240ms ease,
    transform 320ms ease;
}

.password-row.is-visible {
  max-height: 132px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
}

.password-row__label {
  margin-bottom: 10px;
}

.password-row__input-wrap {
  filter: drop-shadow(0 -10px 18px rgba(0, 0, 0, 0.24));
}

.auth-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.auth-action-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: var(--brand-white);
  color: var(--brand-black);
  padding: 16px 20px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.auth-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(249, 176, 0, 0.2);
  border-color: rgba(249, 176, 0, 0.35);
}

.auth-action-button--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-white);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-action-button__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.auth-action-button__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.auth-action-button__icon--scout {
  width: 20px;
  height: 20px;
}

.domain-form__message {
  min-height: 24px;
  margin: 16px 2px 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--copy-soft);
}

.domain-form__message[data-state="success"] {
  color: var(--success);
}

.domain-form__message[data-state="error"] {
  color: var(--error);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .brand-lockup {
    gap: 18px;
    margin-bottom: 22px;
  }

  .brand-lockup__spotlight {
    width: min(88%, 260px);
  }

  .password-row.is-visible {
    max-height: 138px;
  }
}
