:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #07101f;
}

body.login-page {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: #edf6ff;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 82% 8%, rgba(93, 201, 255, 0.20), transparent 34rem),
    radial-gradient(circle at 16% 94%, rgba(172, 137, 255, 0.14), transparent 30rem),
    linear-gradient(145deg, #050a14 0%, #091225 44%, #07101f 100%);
}

body.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.5;
}

.ambient {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient--blue {
  right: -12rem;
  top: -12rem;
  background: rgba(31, 172, 255, 0.35);
}

.ambient--purple {
  left: -16rem;
  bottom: -16rem;
  background: rgba(126, 76, 255, 0.25);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: min(760px, calc(100svh - 48px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(179, 218, 255, 0.16);
  border-radius: 34px;
  background: rgba(9, 17, 32, 0.74);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
}

.login-showcase {
  position: relative;
  min-height: 720px;
  padding: clamp(34px, 4vw, 58px);
  overflow: hidden;
}

.showcase-bg,
.showcase-shade {
  position: absolute;
  inset: 0;
}

.showcase-bg {
  background-image: url('/assets/images/profile-hero-event-bg.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.025);
}

.showcase-shade {
  background:
    radial-gradient(circle at 70% 24%, rgba(93, 201, 255, 0.20), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(172, 137, 255, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(5, 10, 20, 0.78) 0%, rgba(5, 10, 20, 0.45) 45%, rgba(5, 10, 20, 0.88) 100%),
    linear-gradient(0deg, rgba(5, 10, 20, 0.90), rgba(5, 10, 20, 0.12) 42%, rgba(5, 10, 20, 0.42));
}

.showcase-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-lockup img {
  width: 188px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(93, 201, 255, 0.28));
}

.hero-copy {
  margin-top: auto;
  max-width: 580px;
  padding-bottom: clamp(24px, 5vh, 54px);
}

.eyebrow {
  margin: 0 0 14px;
  width: fit-content;
  padding: 8px 16px;
  border: 1px solid rgba(93, 201, 255, 0.22);
  border-radius: 999px;
  background: rgba(93, 201, 255, 0.08);
  color: #76d5ff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 34px rgba(93, 201, 255, 0.08);
}

.hero-copy h1,
.mobile-intro h1 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.2rem, 6.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.93;
  color: #fff;
  text-shadow: 0 0 44px rgba(93, 201, 255, 0.26);
}

.hero-copy p:not(.eyebrow),
.mobile-intro p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 520px;
  color: rgba(237, 246, 255, 0.82);
  font-size: clamp(1.18rem, 1.8vw, 1.65rem);
  line-height: 1.42;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
}

.feature-item {
  min-height: 130px;
  padding: 18px 16px;
  border: 1px solid rgba(139, 198, 255, 0.13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 24, 43, 0.64), rgba(12, 24, 43, 0.32));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
}

.feature-item .material-symbols-outlined {
  display: block;
  margin-bottom: 12px;
  color: #5dc9ff;
  font-size: 30px;
  filter: drop-shadow(0 0 14px rgba(93, 201, 255, 0.35));
}

.feature-item strong {
  display: block;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
}

.feature-item small {
  display: block;
  margin-top: 5px;
  color: rgba(220, 232, 255, 0.66);
  font-size: 0.77rem;
  line-height: 1.35;
}

.auth-side {
  position: relative;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 12%, rgba(93, 201, 255, 0.12), transparent 19rem),
    linear-gradient(180deg, rgba(15, 25, 45, 0.86), rgba(6, 13, 27, 0.94));
  border-left: 1px solid rgba(179, 218, 255, 0.10);
}

.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('/assets/images/profile-hero-event-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: saturate(1.25);
}

.auth-card-wrap,
.brand-lockup--mobile,
.mobile-intro,
.login-footer {
  position: relative;
  z-index: 1;
}

.brand-lockup--mobile,
.mobile-intro {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 438px;
  margin: 0 auto;
  padding: clamp(26px, 3.1vw, 42px);
  border: 1px solid rgba(183, 219, 255, 0.24);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(20, 32, 57, 0.84), rgba(8, 16, 31, 0.70));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(93, 201, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px);
}

.auth-heading h2 {
  margin: 0;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-heading .eyebrow {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 10px;
}

.auth-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(223, 234, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.field-label,
.field-row .field-label {
  display: block;
  color: rgba(224, 234, 255, 0.74);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.15;
  text-transform: uppercase;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forgot-link,
.secondary-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5dc9ff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0;
  transition: color 160ms ease, opacity 160ms ease;
}

.forgot-link:hover,
.secondary-link:hover,
.login-footer a:hover {
  color: #b5ecff;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(169, 202, 239, 0.16);
  border-radius: 17px;
  background: rgba(18, 30, 51, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(93, 201, 255, 0.64);
  background: rgba(21, 36, 62, 0.9);
  box-shadow: 0 0 0 4px rgba(93, 201, 255, 0.10), inset 0 1px 0 rgba(255,255,255,0.08);
}

.input-shell > .material-symbols-outlined {
  flex: 0 0 auto;
  color: rgba(226, 237, 255, 0.62);
  font-size: 23px;
  transition: color 160ms ease;
}

.input-shell:focus-within > .material-symbols-outlined {
  color: #5dc9ff;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 600 0.98rem/1.2 'Inter', sans-serif;
  padding: 0;
  box-shadow: none;
}

.input-shell input::placeholder {
  color: rgba(213, 225, 246, 0.32);
}

.input-shell input:focus {
  outline: none;
  box-shadow: none;
  border: 0;
}

.input-shell--plain {
  padding-left: 18px;
}

.icon-button {
  flex: 0 0 auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 237, 255, 0.62);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.icon-button .material-symbols-outlined {
  font-size: 22px;
}

.primary-login-button {
  appearance: none;
  width: 100%;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #62d7ff 0%, #00a9f8 45%, #0076ff 100%);
  color: #04233b;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  box-shadow: 0 18px 42px rgba(0, 151, 255, 0.30), 0 0 54px rgba(93, 201, 255, 0.26), inset 0 1px 0 rgba(255,255,255,0.32);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.primary-login-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 22px 50px rgba(0, 151, 255, 0.34), 0 0 64px rgba(93, 201, 255, 0.30), inset 0 1px 0 rgba(255,255,255,0.34);
}

.primary-login-button:active {
  transform: scale(0.985);
}

.primary-login-button:disabled {
  cursor: wait;
}

.message-box {
  border-radius: 18px;
  border: 1px solid rgba(255, 113, 108, 0.30);
  background: rgba(255, 113, 108, 0.10);
  color: #ffa8a3;
  padding: 13px 15px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.text-primary.message-box,
.message-box.text-primary {
  border-color: rgba(93, 201, 255, 0.30);
  background: rgba(93, 201, 255, 0.10);
  color: #5dc9ff;
}

.secondary-link {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  color: rgba(220, 232, 255, 0.42);
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.login-footer a {
  color: rgba(220, 232, 255, 0.58);
  text-decoration: none;
  transition: color 160ms ease;
}

.bottom-glow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(93,201,255,0.65), rgba(172,137,255,0.55), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
    min-height: auto;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .login-showcase {
    display: none;
  }

  .auth-side {
    min-height: calc(100svh - 32px);
    justify-content: flex-start;
    padding: clamp(22px, 6vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(179, 218, 255, 0.13);
    border-radius: 32px;
    background:
      linear-gradient(180deg, rgba(6, 12, 26, 0.34) 0%, rgba(6, 12, 26, 0.86) 36%, rgba(6, 12, 26, 0.96) 100%),
      url('/assets/images/profile-hero-event-bg.png') center top / auto 55% no-repeat,
      linear-gradient(160deg, rgba(11, 21, 39, 0.98), rgba(6, 12, 26, 0.98));
    box-shadow: 0 24px 80px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .auth-side::before {
    display: none;
  }

  .brand-lockup--mobile {
    display: flex;
    justify-content: center;
    margin: 3px auto 18px;
  }

  .brand-lockup--mobile img {
    width: clamp(154px, 42vw, 204px);
  }

  .mobile-intro {
    display: block;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 430px;
  }

  .mobile-intro .eyebrow {
    margin-left: auto;
    margin-right: auto;
    padding: 7px 14px;
    font-size: 0.66rem;
  }

  .mobile-intro h1 {
    font-size: clamp(2.15rem, 10vw, 3.45rem);
    letter-spacing: -0.055em;
  }

  .mobile-intro p:not(.eyebrow) {
    margin-top: 12px;
    font-size: clamp(0.96rem, 3.8vw, 1.16rem);
    line-height: 1.45;
  }

  .auth-card {
    max-width: 100%;
    padding: clamp(22px, 5.5vw, 30px);
    border-radius: 28px;
  }

  .auth-heading {
    display: none;
  }

  .login-footer {
    margin-top: auto;
    padding-top: 22px;
    padding-bottom: max(2px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  body.login-page {
    background:
      radial-gradient(circle at 70% 0%, rgba(93, 201, 255, 0.16), transparent 18rem),
      linear-gradient(145deg, #050a14 0%, #091225 52%, #07101f 100%);
  }

  .login-shell {
    width: 100%;
    margin: 0;
  }

  .auth-side {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    padding: max(18px, env(safe-area-inset-top)) 18px 14px;
  }

  .input-shell {
    min-height: 54px;
    border-radius: 16px;
  }

  .primary-login-button {
    min-height: 56px;
    border-radius: 17px;
  }

  .forgot-link {
    font-size: 0.72rem;
  }
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(220, 232, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.auth-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5dc9ff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  transition: color 160ms ease, opacity 160ms ease;
}

.auth-switch button:hover {
  color: #b5ecff;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.optional-label {
  color: rgba(224, 234, 255, 0.38);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.wallet-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(93, 201, 255, 0.22);
  border-radius: 18px;
  background: rgba(93, 201, 255, 0.08);
  color: rgba(220, 232, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.wallet-note .material-symbols-outlined {
  color: #5dc9ff;
  font-size: 22px;
  filter: drop-shadow(0 0 12px rgba(93, 201, 255, 0.28));
}

.wallet-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .wallet-note {
    padding: 12px 13px;
  }
}
