/* Login-only presentation. The loader and application workspace are intentionally untouched. */
.auth-screen {
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 72px);
  background: #070a0b;
}

.auth-screen::before {
  z-index: 0;
  inset: 20px;
  border: 1px solid rgba(139, 151, 158, .24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, transparent 0 13%, rgba(122, 138, 145, .08) 13.08% 13.16%, transparent 13.24%),
    linear-gradient(315deg, transparent 0 12%, rgba(122, 138, 145, .08) 12.08% 12.16%, transparent 12.24%),
    radial-gradient(circle at 50% 50%, rgba(22, 29, 31, .4), transparent 62%);
  content: "";
  opacity: 1;
  transform: none;
}

.auth-screen::after {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(43, 54, 58, .13), transparent 32%),
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(0, 0, 0, .58) 100%);
  pointer-events: none;
}

.auth-orbit {
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(122, 138, 145, .07) 15.08% 15.14%, transparent 15.22% 84.78%, rgba(122, 138, 145, .07) 84.86% 84.92%, transparent 85%),
    linear-gradient(0deg, transparent 0 17%, rgba(122, 138, 145, .06) 17.08% 17.14%, transparent 17.22% 82.78%, rgba(122, 138, 145, .06) 82.86% 82.92%, transparent 83%);
  opacity: .8;
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1040px, calc(100vw - 88px));
  min-height: min(620px, calc(100vh - 180px));
  grid-template-columns: minmax(0, 1fr) minmax(430px, .94fr);
  align-items: stretch;
  gap: clamp(30px, 4vw, 56px);
  padding: 24px;
  border: 1px solid rgba(157, 167, 172, .4);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .012), transparent 47%),
    rgba(8, 11, 12, .72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(12px);
}

.auth-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(50px, 5vw, 72px) 0 clamp(20px, 3vw, 44px) clamp(20px, 3vw, 34px);
}

.auth-eyebrow {
  margin: 0;
  color: #858d92;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .26em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 520px;
  margin: 15px 0 14px;
  color: #f4f5f5;
  font-size: clamp(31px, 2.65vw, 40px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.auth-intro-copy {
  max-width: 470px;
  margin: 0;
  color: #9aa1a6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.auth-benefits {
  display: grid;
  gap: 26px;
  margin-top: 48px;
}

.auth-benefit {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.auth-benefit-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018));
  color: #f4f5f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.auth-benefit-icon svg {
  width: 27px;
  height: 27px;
}

.auth-benefit:nth-child(2) .auth-benefit-icon svg {
  width: 21px;
  height: 21px;
}

.auth-benefit > span:last-child {
  display: grid;
  gap: 4px;
}

.auth-benefit strong {
  color: #f0f1f1;
  font-size: 13px;
  font-weight: 800;
}

.auth-benefit small {
  max-width: 410px;
  color: #8d959a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-screen .auth-card {
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding: clamp(34px, 3vw, 44px) clamp(30px, 3.5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 35% 12%, rgba(60, 71, 75, .11), transparent 36%),
    rgba(13, 16, 17, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 24px 58px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.auth-screen .auth-card-glow {
  display: block;
  inset: -140px auto auto -90px;
  width: 320px;
  height: 320px;
  background: rgba(108, 125, 130, .07);
  filter: blur(70px);
  transform: none;
}

.auth-screen .auth-card-head {
  z-index: 1;
  text-align: left;
}

.auth-screen .auth-card-head .auth-eyebrow {
  font-size: 8px;
  letter-spacing: .22em;
}

.auth-screen .auth-card-head h1 {
  margin: 14px 0 13px;
  color: #f3f4f4;
  font-size: clamp(25px, 1.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.auth-screen .auth-card-head > p:last-child {
  max-width: 420px;
  margin: 0;
  color: #8f979c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.auth-key-label {
  z-index: 1;
  margin-top: 30px;
  color: #858d92;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-screen .auth-key-field {
  z-index: 1;
  display: grid;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid rgba(169, 178, 182, .4);
  border-radius: 15px !important;
  background: rgba(5, 7, 8, .72);
  box-shadow: none;
}

.auth-screen .auth-key-field:focus-within {
  border-color: rgba(255, 255, 255, .68);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .035);
}

.auth-key-icon {
  display: grid;
  place-items: center;
  color: #f2f3f3;
}

.auth-key-icon svg {
  width: 23px;
  height: 23px;
}

.auth-screen .auth-key-field input {
  min-width: 0;
  height: 56px;
  padding: 0;
  color: #f2f3f3;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-submit {
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 15px;
  background: #f3f3f3;
  color: #0d0f10;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(255, 255, 255, .06);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-submit:hover {
  background: #fff;
  box-shadow: 0 16px 36px rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0) scale(.995);
}

.auth-screen .auth-link-button {
  z-index: 1;
  grid-template-columns: 28px minmax(0, 1fr) 40px;
  min-height: 66px;
  margin-top: auto;
  padding: 10px 12px 10px 18px;
  border-color: rgba(255, 255, 255, .13);
  border-radius: 14px !important;
  background: rgba(5, 7, 8, .56);
}

.auth-screen .auth-link-button:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .04);
}

.auth-screen .auth-link-icon svg {
  width: 25px;
  height: 25px;
}

.auth-screen .auth-link-button strong {
  font-size: 13px;
}

.auth-screen .auth-link-arrow {
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .055);
}

@media (max-width: 980px) {
  .auth-screen {
    place-items: start center;
    padding: 36px 20px;
  }

  .auth-screen::before {
    inset: 10px;
    border-radius: 18px;
  }

  .auth-shell {
    width: min(700px, calc(100vw - 40px));
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .auth-intro {
    padding: 28px 26px 18px;
  }

  .auth-intro h1 {
    max-width: 600px;
    font-size: clamp(30px, 5.5vw, 38px);
  }

  .auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
  }

  .auth-benefit {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .auth-benefit-icon {
    width: 48px;
    height: 48px;
  }

  .auth-benefit small {
    font-size: 12px;
  }

  .auth-screen .auth-card {
    min-height: 530px;
    padding: 38px 32px;
  }
}

@media (max-width: 620px) {
  .auth-screen {
    padding: 20px 12px;
  }

  .auth-shell {
    width: calc(100vw - 24px);
    padding: 10px;
    border-radius: 16px;
  }

  .auth-intro {
    padding: 28px 18px 18px;
  }

  .auth-eyebrow {
    font-size: 10px;
    letter-spacing: .2em;
  }

  .auth-intro h1 {
    margin-top: 12px;
    font-size: clamp(28px, 8.2vw, 34px);
  }

  .auth-intro-copy {
    font-size: 12px;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .auth-benefit {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
  }

  .auth-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .auth-benefit-icon svg {
    width: 22px;
    height: 22px;
  }

  .auth-benefit small {
    display: none;
  }

  .auth-screen .auth-card {
    min-height: 500px;
    padding: 32px 18px 22px;
    border-radius: 15px;
  }

  .auth-screen .auth-card-head h1 {
    font-size: 24px;
  }

  .auth-key-label {
    margin-top: 26px;
  }

  .auth-screen .auth-key-field {
    min-height: 54px;
    padding: 0 14px;
  }

  .auth-screen .auth-key-field input {
    height: 52px;
    font-size: 13px;
  }

  .auth-submit {
    min-height: 54px;
    margin-top: 22px;
  }

  .auth-screen .auth-link-button {
    margin-top: 38px;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .auth-shell {
    min-height: calc(100vh - 64px);
  }

  .auth-benefits {
    gap: 17px;
    margin-top: 24px;
  }

  .auth-screen .auth-card {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen *,
  .auth-screen::before,
  .auth-screen::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
