body.login-page {
  --login-gold-rgb: 250, 211, 43;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color-scheme: dark;
  color: #f5f1e8;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(circle at 31% 46%, rgba(var(--login-gold-rgb), 0.045), transparent 35%),
    radial-gradient(circle at 9% 88%, rgba(var(--login-gold-rgb), 0.055), transparent 31%),
    linear-gradient(135deg, #060709 0%, #101113 46%, #07080a 100%);
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
}

body.login-page::before,
body.login-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  user-select: none;
}

body.login-page::before {
  left: -34vw;
  bottom: -54vh;
  width: min(1260px, 92vw);
  height: min(900px, 102vh);
  background:
    radial-gradient(
      ellipse at 18% 76%,
      rgba(var(--login-gold-rgb), 0.12) 0%,
      rgba(var(--login-gold-rgb), 0.045) 27%,
      rgba(var(--login-gold-rgb), 0.015) 50%,
      transparent 72%
    ),
    linear-gradient(
      74deg,
      transparent 18%,
       rgba(var(--login-gold-rgb), 0.05) 39%,
       rgba(var(--login-gold-rgb), 0.018) 57%,
       transparent 75%
    );
  filter: blur(46px);
  opacity: 0.58;
  transform: rotate(-8deg);
  transform-origin: 22% 74%;
}

body.login-page::after {
  left: -30vw;
  bottom: -50vh;
  width: min(1300px, 96vw);
  height: min(960px, 108vh);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      transparent 55.9%,
       rgba(var(--login-gold-rgb), 0.28) 56.04%,
       rgba(var(--login-gold-rgb), 0.1) 56.16%,
      transparent 56.36%),
    radial-gradient(ellipse at center,
      transparent 61.78%,
       rgba(var(--login-gold-rgb), 0.11) 61.88%,
       rgba(var(--login-gold-rgb), 0.04) 62.03%,
      transparent 62.22%),
    radial-gradient(ellipse at center,
      transparent 67.52%,
       rgba(var(--login-gold-rgb), 0.065) 67.62%,
       rgba(var(--login-gold-rgb), 0.025) 67.76%,
      transparent 67.94%),
    radial-gradient(ellipse at center,
      transparent 73.22%,
      rgba(var(--login-gold-rgb), 0.065) 73.3%,
      transparent 73.52%);
  filter: drop-shadow(0 0 4px rgba(var(--login-gold-rgb), 0.1));
  opacity: 0.5;
  transform: rotate(-9deg) scaleX(1.08);
  transform-origin: center;
}

body.login-page,
body.login-page * {
  box-sizing: border-box;
}

body.login-page a {
  color: inherit;
  text-decoration: none;
}

body.login-page a:hover {
  text-decoration: none;
}

body.login-page form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.login-page input,
body.login-page button,
body.login-page select,
body.login-page textarea {
  font: inherit;
}

body.login-page input[type="checkbox"] {
  accent-color: #f4c21d;
}

body.login-page input::placeholder {
  color: rgba(245, 241, 232, 0.45);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(620px, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(28px, 4vw, 72px);
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
  align-items: start;
  padding: 0 clamp(22px, 3vw, 44px) clamp(18px, 2vw, 28px);
}

.login-hero,
.login-panel {
  min-width: 0;
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(12px, 1.9vw, 24px);
  min-height: min(820px, calc(100vh - 56px));
  padding: 0 0 clamp(132px, 15vh, 190px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 4px;
}

.login-insights,
.login-ambient {
  display: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  margin: 0;
  z-index: 3;
}

.login-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-brand-name {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fffdf5;
}

.login-brand-subtitle {
  font-size: 0.85rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.7);
}

.login-hero-content {
  display: block;
  width: 100%;
  margin-top: clamp(8px, 1vw, 18px);
  position: relative;
  z-index: 3;
}

.login-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 56px);
  max-width: 620px;
  margin: 0;
  padding-left: clamp(4px, 0.6vw, 12px);
  position: relative;
  z-index: 3;
}

.login-hero-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  color: #fffdf5;
  font-size: clamp(1.9rem, 2.45vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.login-hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.login-hero-copy h1 .accent {
  color: #f4c21d;
}

.login-hero-benefits {
  display: grid;
  gap: 12px;
  width: min(100%, 320px);
  margin: 0;
  padding-left: 0;
  position: relative;
  z-index: 2;
}

.login-hero-icon3 {
  position: absolute;
  right: clamp(-96px, -4.4vw, -48px);
  bottom: clamp(-46px, -2.8vh, -20px);
  z-index: 0;
  display: block;
  width: min(100%, 720px);
  max-height: min(58vh, 410px);
  object-fit: contain;
  object-position: center;
  transform: translate(15%, -14%);
  transform-origin: right bottom;
  image-rendering: auto;
  -webkit-transform: translate(15%, -14%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.login-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fffdf5;
  font-size: clamp(0.94rem, 1.05vw, 1.15rem);
  line-height: 1.18;
}

.login-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(244, 194, 29, 0.2);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(18, 18, 20, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(244, 194, 29, 0.06);
  color: #f4c21d;
}

.login-benefit-icon svg {
  width: 16px;
  height: 16px;
}

.login-panel {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 0;
  padding-top: clamp(36px, 6vh, 80px);
  transform: translateX(clamp(-120px, -7vw, -56px));
}

.login-card {
  width: min(100%, 520px);
  min-height: clamp(640px, 74vh, 780px);
  padding: clamp(24px, 2.4vw, 32px) clamp(20px, 2vw, 26px) clamp(36px, 3.2vw, 48px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 12, 0.7);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 420px);
  margin-bottom: 10px;
  text-align: center;
  align-items: center;
}

.login-card-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-card-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-card-kicker {
  color: #f4c21d;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
}

.login-card-header h2 {
  margin: 0;
  color: #fffdf5;
  font-size: clamp(2.1rem, 2.2vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.login-card-header p {
  margin: 0;
  color: rgba(245, 241, 232, 0.68);
  max-width: none;
  line-height: 1.55;
  font-size: 0.92rem;
}

.login-form {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  margin-inline: auto;
  margin-top: clamp(16px, 3vh, 30px);
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field label {
  color: rgba(255, 250, 240, 0.92);
  font-weight: 700;
  font-size: 0.96rem;
}

.login-input-shell {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245, 241, 232, 0.56);
  pointer-events: none;
  z-index: 1;
}

.login-input-icon svg {
  width: 18px;
  height: 18px;
}

.login-page .login-input {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 11px 16px 11px 46px;
  border-radius: 16px;
  border: 1px solid rgba(92, 102, 122, 0.6);
  background: linear-gradient(180deg, rgba(47, 56, 73, 0.98), rgba(39, 46, 61, 0.98));
  color: #fffdf5;
  caret-color: #fffdf5;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.login-page .login-input:focus {
  border-color: rgba(244, 194, 29, 0.7);
  box-shadow:
    0 0 0 4px rgba(244, 194, 29, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-page .login-input::placeholder {
  color: rgba(245, 241, 232, 0.52);
}

.login-page .login-input:-webkit-autofill,
.login-page .login-input:-webkit-autofill:hover,
.login-page .login-input:-webkit-autofill:focus,
.login-page .login-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fffdf5;
  -webkit-box-shadow: 0 0 0 1000px rgb(47, 56, 73) inset;
  box-shadow: 0 0 0 1000px rgb(47, 56, 73) inset;
  border-color: rgba(92, 102, 122, 0.75);
  transition: background-color 9999s ease-in-out 0s;
}

.login-field ul,
.login-field .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ffbebe;
  font-size: 0.92rem;
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 240, 0.84);
  font-weight: 600;
}

.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.login-link {
  color: #f4c21d;
  font-weight: 700;
}

.login-link:hover {
  color: #ffd85a;
}

.login-submit,
.login-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.login-submit {
  border: 0;
  color: #171717;
  background: linear-gradient(180deg, #ffd95b 0%, #f0bd1c 100%);
  box-shadow: none;
}

.login-submit:hover,
.login-submit:focus-visible,
.login-outline-button:hover,
.login-outline-button:focus-visible {
  transform: translateY(-1px);
}

.login-outline-button {
  color: #f4c21d;
  border: 1px solid rgba(244, 194, 29, 0.58);
  background: rgba(255, 255, 255, 0.015);
}

.login-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.login-divider span {
  padding: 0 16px;
}

.login-security {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
  color: rgba(245, 241, 232, 0.58);
  font-size: 0.9rem;
}

.login-security span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-security svg {
  width: 16px;
  height: 16px;
  color: #f4c21d;
}

.login-security-wrap {
  position: relative;
  width: 100%;
}

.login-error-inline {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  padding: 0 10px;
  color: #ff3b3b;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

.login-error-inline ul,
.login-error-inline li {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  list-style: none;
  margin: 0;
  padding: 0;
}

.login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(28px, 3vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 18, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(245, 241, 232, 0.62);
  font-size: 0.84rem;
  line-height: 1;
}

.login-footer-copy {
  white-space: nowrap;
}

.login-footer-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: rgba(245, 241, 232, 0.62);
}

.login-footer-help:hover {
  color: #fffdf5;
}

.login-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(245, 241, 232, 0.72);
}

.login-footer-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1360px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.84fr);
    gap: clamp(24px, 3vw, 42px);
  }

  .login-hero-copy h1 {
    font-size: clamp(2.55rem, 3.4vw, 3.95rem);
  }

  .login-hero-copy h1 span {
    white-space: nowrap;
  }

}

@media (max-width: 1180px) {
  body.login-page::before {
    left: -42vw;
    bottom: -34vh;
    width: 120vw;
    opacity: 0.58;
  }

  body.login-page::after {
    left: -46vw;
    bottom: -36vh;
    width: 128vw;
    opacity: 0.5;
  }

  .login-shell {
    grid-template-columns: 1fr;
    align-items: start;
    height: auto;
    min-height: calc(100vh - 56px);
    padding: 12px 18px 18px;
  }

  .login-hero {
    min-height: 0;
    margin-top: 0;
    padding-bottom: 28px;
  }

  .login-hero-copy h1 span {
    white-space: normal;
  }

  .login-hero-benefits {
    width: 100%;
    margin-top: 0;
  }

  .login-hero-icon3 {
    position: static;
    width: min(100%, 440px);
    max-height: 220px;
    margin: 12px auto 0;
    transform: none;
  }

  .login-panel {
    min-height: auto;
    padding-top: 0;
    transform: none;
  }

  .login-footer {
    padding: 0 18px;
  }
}

@media (max-width: 760px) {
  body.login-page {
    background:
      radial-gradient(circle at 18% 36%, rgba(var(--login-gold-rgb), 0.055), transparent 34%),
      linear-gradient(180deg, #060709 0%, #101113 100%);
    height: auto;
    min-height: 100vh;
  }

  body.login-page::before {
    left: -54vw;
    bottom: -22vh;
    width: 124vw;
    height: 60vh;
    filter: blur(34px);
    opacity: 0.34;
    transform: rotate(-10deg);
  }

  body.login-page::after {
    left: -70vw;
    bottom: -28vh;
    width: 160vw;
    height: 70vh;
    opacity: 0.24;
    transform: rotate(-12deg) scaleX(1.08);
  }

  .login-shell {
    padding: 16px;
    gap: 16px;
    height: auto;
  }

  .login-hero,
  .login-card {
    border-radius: 24px;
  }

  .login-hero {
    min-height: 0;
    padding: 0;
    margin-top: 0;
  }

  .login-hero-copy h1 span {
    white-space: normal;
  }

  .login-hero-copy,
  .login-hero-benefits {
    width: 100%;
    max-width: none;
  }

  .login-hero-icon3 {
    width: min(100%, 320px);
    max-height: 175px;
    margin-top: 8px;
    transform: none;
  }

  .login-card {
    padding: 22px;
  }

  .login-card-logo {
    width: 132px;
    height: 132px;
    margin-bottom: 10px;
  }

  .login-row,
  .login-security {
    flex-direction: column;
    align-items: stretch;
  }

  .login-footer {
    height: auto;
    min-height: 56px;
    padding: 12px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
  }
}
