:root {
  --login-bg: #f3f5f9;
  --ink: #121826;
  --muted: #667085;
  --line: #d8dee9;
  --gold: #ffd545;
  --gold-deep: #f4c600;
  --blue: #4169e1;
  --panel: #171a22;
  --shadow: 0 28px 60px rgba(18, 24, 38, 0.12);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.22);
  --danger: #d93f54;
}

* {
  box-sizing: border-box;
}

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

body.login-page {
  margin: 0;
  background: var(--login-bg);
  color: var(--ink);
  font-family: "Roboto", sans-serif;
}

a {
  color: inherit;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  min-height: 100vh;
}

.auth-panel {
  position: relative;
}

.auth-panel--brand {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(65, 105, 225, 0.24), transparent 34%),
    linear-gradient(135deg, #252933 0%, #15181f 100%);
  color: #fff;
}

.auth-panel__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

.pattern-icon {
  position: absolute;
  color: #fff;
}

.pattern-icon-1 {
  top: 8%;
  left: 6%;
  width: 120px;
  height: 120px;
}

.pattern-icon-2 {
  right: 12%;
  bottom: 16%;
  width: 96px;
  height: 96px;
}

.auth-panel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 2rem clamp(1.75rem, 4vw, 3.5rem);
}

.auth-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.auth-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.auth-nav a:hover,
.auth-nav a:focus {
  color: #fff;
}

.brand-lockup {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 2.5rem;
}

.brand-lockup img {
  width: min(100%, 270px);
  height: auto;
}

.brand-copy {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.02;
}

.brand-summary {
  max-width: 500px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
  margin-top: 2rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.feature-icon img,
.feature-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-item h2 {
  margin: 0 0 0.3rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.all-in-lockup {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2.5rem;
}

.all-in-lockup__image {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-inline: auto;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 2.5rem auto 0;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.coin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.24));
  animation: floatCoin 6s ease-in-out infinite;
}

.coin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coin-1 {
  top: 15%;
  right: 14%;
  width: 228px;
  height: 228px;
}

.coin-2 {
  top: 34%;
  right: 7%;
  animation-delay: .5s;
  width: 180px;
  height: 180px;
}

.coin-3 {
  top: 52%;
  right: 12%;
  animation-delay: .75s;
  width: 120px;
  height: 120px;
}

@keyframes floatCoin {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-18px) rotate(4deg);
  }

  75% {
    transform: translateY(-12px) rotate(-4deg);
  }
}

.auth-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.75rem, 4vw, 3.5rem);
}

.auth-card {
  width: min(100%, 560px);
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card__header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.auth-card__header p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.auth-alert {
  margin-top: 1.5rem;
}

.auth-alert .alert {
  margin-bottom: 0;
  border-radius: 14px;
}

.auth-form {
  margin-top: 1.8rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group label span {
  color: var(--danger);
}

.input-shell {
  position: relative;
}

.input-shell__icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 20px;
  color: #98a2b3;
  pointer-events: none;
}

.input-shell__icon img,
.input-shell__icon svg,
.password-toggle img,
.password-toggle svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.input-shell input,
.modal-input {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.input-shell input {
  padding-left: 3rem;
  padding-right: 3.25rem;
}

.input-shell input:focus,
.modal-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.12);
}

.input-shell input.is-invalid,
.modal-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(217, 63, 84, 0.1);
}

.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-block: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #98a2b3;
}

.password-toggle:hover,
.password-toggle:focus {
  color: #667085;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.2rem 0 1.6rem;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #475467;
  font-size: 0.95rem;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.forgot-link,
.account-toggle__option span {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover,
.forgot-link:focus,
.account-toggle__option span:hover {
  text-decoration: underline;
}

.login-button,
.loginBtn {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(101deg, #fccd0b 3%, #ffd545 45%, #fccd0b 100%);
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(252, 205, 11, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.login-button:hover,
.login-button:focus,
.loginBtn:hover,
.loginBtn:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(252, 205, 11, 0.3);
}

.login-button:disabled,
.loginBtn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.google-login-wrap {
  margin-top: 0.95rem;
}

.google-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.google-login-btn:hover,
.google-login-btn:focus {
  border-color: rgba(65, 105, 225, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.24);
}

.google-login-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.12), 0 16px 34px rgba(148, 163, 184, 0.24);
}

.google-login-btn svg {
  flex: 0 0 auto;
  display: block;
  width: 20px;
  height: 20px;
}

.field-help,
.field-error {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
}

.participant-modal {
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.participant-modal--compact {
  max-width: 560px;
  margin-inline: auto;
}

.participant-modal__header {
  align-items: start;
  padding: 1.5rem 1.5rem 0;
  border: 0;
}

.participant-modal__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.participant-modal__header h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.participant-modal__body {
  padding: 1rem 1.5rem 1.6rem;
}

.participant-modal__intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.participant-form--compact {
  display: grid;
  gap: 0.2rem;
}

.toggle-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 500;
}

.toggle-label span {
  color: var(--danger);
}

.account-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-toggle__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.account-toggle__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.account-toggle__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #344054;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.account-toggle__option input:checked + span {
  border-color: var(--blue);
  background: rgba(65, 105, 225, 0.08);
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.12);
  color: var(--blue);
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.participant-grid__full {
  grid-column: 1 / -1;
}

.input-shell--modal .modal-input {
  padding-right: 3.25rem;
  background: #f8fafc;
}

.participant-form__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.login-button--modal {
  max-width: 220px;
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel__content {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .auth-panel--form {
    padding-top: 0;
    padding-bottom: 3rem;
  }

  .coin {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .auth-panel__content,
  .auth-panel--form {
    padding-inline: 1.2rem;
  }

  .auth-card {
    border-radius: 20px;
    padding: 1.4rem;
  }

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

  .participant-grid {
    grid-template-columns: 1fr;
  }

  .login-button--modal {
    max-width: none;
  }

  .footer-pills {
    border-radius: 24px;
  }
}