.login-page {
  min-height: 100vh;
  background: #f4f7f8;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(480px, .92fr);
  min-height: 100vh;
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 38px 48px 30px;
  overflow: hidden;
  color: #eef8f6;
  background:
    radial-gradient(circle at 15% 18%, rgba(35, 190, 174, .17), transparent 27%),
    radial-gradient(circle at 92% 78%, rgba(221, 158, 62, .11), transparent 25%),
    linear-gradient(135deg, #071622 0%, #0a202d 48%, #0a2930 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 210, 204, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 210, 204, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
  pointer-events: none;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -13%;
  top: 12%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(94, 213, 201, .1);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(94, 213, 201, .035),
    0 0 0 150px rgba(94, 213, 201, .022);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(146, 235, 226, .3);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(25, 181, 167, .3), rgba(15, 91, 91, .28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .18);
}

.brand-logo svg {
  width: 28px;
  height: 28px;
}

.brand-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(179, 218, 215, .64);
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .19em;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(580px, 94%);
  margin: auto 0;
  padding: 60px 0 24px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  color: #b9e8e2;
  font-size: 11px;
  letter-spacing: .14em;
  border: 1px solid rgba(108, 214, 202, .18);
  border-radius: 999px;
  background: rgba(30, 113, 110, .12);
}

.hero__eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #54d8c8;
  box-shadow: 0 0 0 5px rgba(84, 216, 200, .1);
}

.hero h1 {
  max-width: 520px;
  margin: 24px 0 18px;
  color: #f4fbfa;
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.hero h1 em {
  color: #6ed8ca;
  font-style: normal;
}

.hero__copy {
  max-width: 470px;
  margin: 0;
  color: rgba(204, 225, 224, .7);
  font-size: 14px;
  line-height: 1.9;
}

.hero__metrics {
  display: flex;
  gap: 36px;
  margin-top: 34px;
}

.hero-metric {
  position: relative;
}

.hero-metric + .hero-metric::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(210, 238, 235, .11);
}

.hero-metric strong {
  display: block;
  color: #eaf8f5;
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .01em;
}

.hero-metric span {
  display: block;
  margin-top: 5px;
  color: rgba(171, 207, 205, .55);
  font-size: 11px;
}

.market-widget {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  margin-top: 34px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(166, 225, 218, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21, 76, 79, .3), rgba(7, 26, 38, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 26px 60px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
}

.market-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-widget__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(197, 224, 221, .67);
  font-size: 11px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #50d3bd;
  box-shadow: 0 0 0 4px rgba(80, 211, 189, .1);
  animation: live-pulse 2.4s ease-in-out infinite;
}

.market-widget__badge {
  padding: 3px 8px;
  color: #9ee4d8;
  font-size: 9px;
  letter-spacing: .08em;
  border: 1px solid rgba(104, 212, 192, .2);
  border-radius: 999px;
}

.market-widget__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

.market-price {
  color: #f1fbf9;
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
}

.market-price small {
  margin-left: 5px;
  color: rgba(186, 215, 212, .55);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
}

.market-delta {
  margin-top: 7px;
  color: #72d6c5;
  font-size: 10px;
}

.spark {
  width: 195px;
  height: 42px;
  overflow: visible;
}

.spark path.line {
  fill: none;
  stroke: #56d2c0;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark path.area {
  fill: url(#sparkFill);
  opacity: .35;
}

.login-brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  color: rgba(155, 193, 191, .45);
  font-size: 10px;
  letter-spacing: .04em;
}

.login-brand-footer span:last-child {
  font-family: var(--font-num);
}

.login-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 48px clamp(42px, 6vw, 96px);
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 179, 165, .055), transparent 36%),
    #f7f9fa;
}

.login-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 48%;
  transform: translateY(-50%);
  background: linear-gradient(transparent, rgba(10, 40, 52, .09), transparent);
}

.login-topline {
  position: absolute;
  top: 34px;
  right: clamp(42px, 6vw, 96px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 11px;
}

.login-topline strong {
  color: var(--teal-700);
  font-weight: 600;
}

.login-card {
  width: min(410px, 100%);
  margin: 0 auto;
}

.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.login-mobile-brand .brand-logo {
  width: 40px;
  height: 40px;
  border-color: rgba(11, 155, 143, .18);
  background: linear-gradient(145deg, #0d998d, #08736d);
}

.login-mobile-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: .04em;
}

.login-mobile-brand span {
  display: block;
  margin-top: 2px;
  color: var(--slate-500);
  font-family: var(--font-num);
  font-size: 8px;
  letter-spacing: .16em;
}

.login-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

.login-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--teal-500);
}

.login-card h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.login-sub {
  margin: 10px 0 32px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.75;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
}

.field__control {
  position: relative;
}

.field__control .icon-leading {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--slate-400);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color .2s ease;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 42px;
  color: var(--ink-900);
  font-size: 13px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input::placeholder {
  color: #acbbc3;
}

.field input:hover {
  border-color: #c9d9df;
}

.field input:focus {
  outline: 0;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(19, 179, 165, .1);
}

.field input:focus + .icon-leading,
.field__control:focus-within .icon-leading {
  color: var(--teal-600);
}

.field.is-error input {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(225, 95, 95, .08);
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--slate-400);
  border-radius: 8px;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease;
}

.password-toggle:hover {
  color: var(--ink-700);
  background: var(--slate-100);
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -3px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--slate-300);
  border-radius: 4px;
  background: var(--white);
  transition: all .18s ease;
}

.check__box svg {
  width: 10px;
  height: 10px;
  color: var(--white);
  opacity: 0;
  transform: scale(.7);
  transition: all .18s ease;
}

.check input:checked + .check__box {
  border-color: var(--teal-600);
  background: var(--teal-600);
}

.check input:checked + .check__box svg {
  opacity: 1;
  transform: scale(1);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}

.text-link {
  padding: 0;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 49px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: 11px;
  background: linear-gradient(135deg, #0a8c81, #08756f);
  box-shadow: 0 10px 24px rgba(8, 117, 111, .18), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .2s var(--ease-out), box-shadow .2s ease, filter .2s ease;
}

.login-submit::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -40%;
  width: 32%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: rotate(18deg);
  transition: left .55s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 14px 30px rgba(8, 117, 111, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.login-submit:hover::after {
  left: 115%;
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit:disabled {
  cursor: wait;
  opacity: .8;
}

.login-submit .icon {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.login-submit:hover .icon {
  transform: translateX(2px);
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: -3px;
  padding: 10px 12px;
  color: var(--red-600);
  font-size: 11px;
  line-height: 1.55;
  border: 1px solid #f3d2d2;
  border-radius: 9px;
  background: #fdf6f6;
}

.form-error.is-visible {
  display: flex;
  animation: shake .3s ease both;
}

.form-error .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.demo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 11px 13px;
  border: 1px dashed #d5e2e6;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
}

.demo-box__copy {
  color: var(--slate-500);
  font-size: 10px;
  line-height: 1.65;
}

.demo-box__copy strong {
  display: block;
  margin-bottom: 1px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 600;
}

.demo-fill {
  flex: none;
  padding: 5px 9px;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #cde6e2;
  border-radius: 7px;
  background: var(--teal-50);
  transition: background .2s ease;
}

.demo-fill:hover {
  background: #e1f8f4;
}

.login-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  color: var(--slate-400);
  font-size: 9px;
  line-height: 1.6;
  border-top: 1px solid #e5ecef;
}

.login-security .icon {
  width: 13px;
  height: 13px;
  color: var(--slate-400);
}

.login-foot {
  position: absolute;
  left: clamp(42px, 6vw, 96px);
  right: clamp(42px, 6vw, 96px);
  bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-400);
  font-size: 9px;
}

.login-foot .version {
  font-family: var(--font-num);
  letter-spacing: .04em;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(80, 211, 189, .1); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(80, 211, 189, .02); opacity: .7; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: minmax(470px, 1fr) minmax(430px, .92fr);
  }

  .login-brand-panel {
    padding: 32px 38px 26px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__metrics {
    gap: 28px;
  }

  .market-widget {
    max-width: 490px;
  }
}

@media (max-width: 900px) {
  .login-shell {
    display: block;
  }

  .login-brand-panel {
    display: none;
  }

  .login-entry {
    min-height: 100vh;
    padding: 34px 24px 90px;
    background:
      radial-gradient(circle at 92% 5%, rgba(19, 179, 165, .09), transparent 30%),
      #f7f9fa;
  }

  .login-entry::before {
    display: none;
  }

  .login-topline {
    top: 30px;
    right: 24px;
  }

  .login-card {
    width: min(420px, 100%);
    margin: auto;
  }

  .login-mobile-brand {
    display: flex;
  }

  .login-foot {
    left: 24px;
    right: 24px;
    bottom: 20px;
  }
}

@media (max-width: 520px) {
  .login-entry {
    padding: 26px 20px 86px;
  }

  .login-topline {
    display: none;
  }

  .login-mobile-brand {
    margin-bottom: 34px;
  }

  .login-card h2 {
    font-size: 27px;
  }

  .login-sub {
    margin-bottom: 28px;
  }

  .login-foot span:first-child {
    max-width: 210px;
  }
}
