.gleam-login,
.gleam-login * {
  box-sizing: border-box;
  line-height: 1.5;
}

.gleam-login {
  position: relative;
  min-height: calc(100vh - 60px);
  overflow: hidden;
  color: #fff;
  background: #020612;
  isolation: isolate;
}

.gleam-login::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("/resource/image/home/banner@2x.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.48;
}

.gleam-login::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      circle at 21% 24%,
      rgba(79, 107, 255, 0.34),
      transparent 28%
    ),
    radial-gradient(
      circle at 78% 20%,
      rgba(34, 212, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(
      110deg,
      rgba(2, 6, 18, 0.98) 0%,
      rgba(4, 10, 28, 0.92) 42%,
      rgba(2, 6, 18, 0.82) 100%
    );
}

.gleam-login__orb {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.62;
}

.gleam-login__orb--primary {
  top: 18%;
  right: 7%;
  width: 240px;
  height: 240px;
  background: rgba(125, 77, 255, 0.28);
}

.gleam-login__orb--secondary {
  bottom: 10%;
  left: 10%;
  width: 210px;
  height: 210px;
  background: rgba(34, 212, 255, 0.16);
}

.gleam-login__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 488px);
  gap: 68px;
  align-items: flex-start;
  width: min(calc(100% - 48px), 1282px);
  min-height: calc(100vh - 60px);
  padding: 92px 0 98px;
  margin: 0 auto;
}

.gleam-login__content {
  max-width: 638px;
}

.gleam-login__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 700;
  color: #aee8ff;
  text-transform: uppercase;
  background: rgba(78, 107, 255, 0.14);
  border: 1px solid rgba(174, 232, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 0 36px rgba(82, 113, 255, 0.18);
}

.gleam-login__title {
  max-width: 650px;
  margin: 0;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.gleam-login__title span {
  display: block;
  color: #dce8ff;
}

.gleam-login__copy {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: rgba(236, 244, 255, 0.72);
}

.gleam-login__proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 650px;
  margin-top: 42px;
}

.gleam-login__proof-card {
  padding: 19px 20px 18px;
  background: rgba(8, 18, 42, 0.58);
  border: 1px solid rgba(174, 232, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.gleam-login__proof-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.gleam-login__proof-card span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(236, 244, 255, 0.62);
}

.gleam-login__network-card {
  position: relative;
  max-width: 560px;
  padding: 16px;
  margin-top: 30px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(13, 24, 51, 0.72) 0%,
    rgba(6, 11, 25, 0.72) 100%
  );
  border: 1px solid rgba(128, 160, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.gleam-login__network-card::after {
  position: absolute;
  inset: auto 8% 10% auto;
  width: 140px;
  height: 140px;
  pointer-events: none;
  content: "";
  background: rgba(80, 110, 255, 0.24);
  border-radius: 999px;
  filter: blur(48px);
}

.gleam-login__network-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 20px;
}

.gleam-login__panel {
  width: 100%;
}

.gleam-login__card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 18px 52px rgba(79, 107, 255, 0.14);
}

.gleam-login__card-header {
  margin-bottom: 30px;
}

.gleam-login__card-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #4f6bff;
  text-transform: uppercase;
}

.gleam-login__card-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
}

.gleam-login__card-copy {
  margin: 12px 0 0;
  font-size: 15px;
  color: #647286;
}

.gleam-login__form {
  display: grid;
  gap: 18px;
}

.gleam-login__field {
  display: grid;
  gap: 8px;
}

.gleam-login__field[hidden] {
  display: none;
}

.gleam-login__label {
  font-size: 14px;
  font-weight: 700;
  color: #182132;
}

.gleam-login__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: #111827;
  background: #f7f9ff;
  border: 1px solid #dde5f2;
  border-radius: 14px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.gleam-login__input::placeholder {
  color: #9aa6b7;
}

.gleam-login__input:focus {
  background: #fff;
  border-color: rgba(79, 107, 255, 0.68);
  box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.13);
}

.gleam-login__hint {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #647286;
}

.gleam-login__alert {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #b42318;
  background: #fff3f0;
  border: 1px solid #ffd4ca;
  border-radius: 14px;
}

.gleam-login__alert[data-state="success"] {
  color: #027a48;
  background: #ecfdf3;
  border-color: #abefc6;
}

.gleam-login__alert[hidden] {
  display: none;
}

.gleam-login__secondary-action {
  display: inline-flex;
  justify-content: center;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #5a56ff;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.gleam-login__secondary-action[hidden] {
  display: none;
}

.gleam-login__secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.gleam-login__divider {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 24px 0 18px;
  font-size: 12px;
  font-weight: 700;
  color: #8a97aa;
  text-transform: uppercase;
}

.gleam-login__divider::before,
.gleam-login__divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: #e4ebf5;
}

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

.gleam-login__oauth-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #182132;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gleam-login__oauth-button:hover:not(:disabled) {
  border-color: rgba(79, 107, 255, 0.38);
  box-shadow: 0 12px 28px rgba(18, 31, 61, 0.08);
  transform: translateY(-1px);
}

.gleam-login__oauth-button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.gleam-login__oauth-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.gleam-login__auth-switch {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #647286;
  text-align: center;
}

.gleam-login__auth-switch a {
  color: #5a56ff;
  text-decoration: none;
}

.gleam-login__auth-switch a:hover {
  text-decoration: underline;
}

.gleam-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 24px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: var(--gleam-gradient-primary);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(88, 91, 255, 0.34);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.gleam-login__submit:hover:not(:disabled) {
  box-shadow: 0 22px 46px rgba(88, 91, 255, 0.42);
  transform: translateY(-1px);
}

.gleam-login__submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.gleam-login__secure-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-top: 22px;
  background: linear-gradient(
    135deg,
    rgba(79, 107, 255, 0.08),
    rgba(34, 212, 255, 0.08)
  );
  border: 1px solid rgba(79, 107, 255, 0.12);
  border-radius: 16px;
}

.gleam-login__secure-icon {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(88, 91, 255, 0.28));
}

.gleam-login__secure-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #647286;
}

/* Mobile login layout follows the supplied 375px prototype. */
@media (max-width: 767px) {
  .gleam-login {
    min-height: 0;
    overflow: hidden;
    background: #030817;
  }

  .gleam-login::before {
    background-image: none;
  }

  .gleam-login::after {
    background:
      radial-gradient(
        circle at 12% 34%,
        rgba(79, 107, 255, 0.16),
        transparent 24%
      ),
      linear-gradient(180deg, #050919 0%, #030817 100%);
  }

  .gleam-login__orb {
    display: none;
  }

  .gleam-login__inner {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 100%;
    min-height: 0;
    padding: 20px max(14px, env(safe-area-inset-right, 0px)) 0
      max(14px, env(safe-area-inset-left, 0px));
  }

  .gleam-login__panel {
    order: 1;
  }

  .gleam-login__content {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .gleam-login__card {
    padding: 20px 16px 22px;
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  }

  .gleam-login__card-header {
    margin-bottom: 16px;
  }

  .gleam-login__card-kicker {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .gleam-login__card-title {
    font-size: 24px;
  }

  .gleam-login__card-copy {
    margin-top: 10px;
    font-size: 14px;
  }

  .gleam-login__form {
    gap: 14px;
  }

  .gleam-login__field {
    gap: 7px;
  }

  .gleam-login__label {
    font-size: 14px;
    font-weight: 600;
  }

  .gleam-login__input {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  .gleam-login__submit {
    height: 36px;
    margin-top: 4px;
    border-radius: 8px;
    font-size: 13px;
  }

  .gleam-login__divider {
    margin: 20px 0 16px;
    font-weight: normal;
  }

  .gleam-login__oauth-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gleam-login__oauth-button {
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    span {
      font-weight: 600;
    }
  }

  .gleam-login__auth-switch {
    margin-top: 20px;
    font-size: 13px;
  }

  .gleam-login__secure-note {
    padding: 12px;
    margin-top: 18px;
    border-radius: 8px;
  }

  .gleam-login__secure-icon {
    width: 22px;
    height: 22px;
  }

  .gleam-login__secure-note p {
    font-size: 12px;
  }

  .gleam-login__eyebrow {
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 15px;
    font-size: 12px;
    border-radius: 0;
    font-weight: 700;
  }

  .gleam-login__title {
    font-size: 24px;
  }

  .gleam-login__copy {
    margin-top: 15px;
    font-size: 14px;
  }

  .gleam-login__proof-grid {
    gap: 10px;
    margin-top: 28px;
  }

  .gleam-login__proof-card {
    min-width: 0;
    min-height: 70px;
    padding: 10px;
    border-radius: 8px;
  }

  .gleam-login__proof-card strong {
    font-size: 16px;
  }

  .gleam-login__proof-card span {
    margin-top: 6px;
    font-size: 11px;
  }

  .gleam-login__network-card {
    width: 100%;
    max-width: none;
    padding: 10px;
    margin-top: 20px;
    border-radius: 14px;
  }

  .gleam-login__network-card img {
    border-radius: 10px;
  }

  .gleam-signup .gleam-login__card {
    padding-top: 18px;
  }

  .gleam-signup .gleam-login__card-header {
    margin-bottom: 18px;
  }

  .gleam-signup .gleam-login__form {
    gap: 12px;
  }

  .gleam-signup .gleam-login__hint {
    font-size: 12px;
    font-weight: normal;
  }

  .gleam-signup .gleam-login__divider {
    margin: 18px 0 14px;
  }

  .gleam-signup .gleam-login__secure-note {
    margin-top: 18px;
  }
}
