
/* Unified navigation chrome: quiet indigo, consistent radius and hierarchy. */
:root {
  --soy-header-height: 68px;
  --soy-sider-width: 224px;
  --chrome-indigo: #7479e8;
  --chrome-indigo-soft: #eef0ff;
  --chrome-radius: 10px;
}
.sidebar {
  padding: 10px 10px 12px;
  border-right: 1px solid rgb(255 255 255 / 5%);
  background: linear-gradient(180deg, #171c2b 0%, #121725 58%, #101520 100%);
  box-shadow: 8px 0 28px rgb(14 20 33 / 9%);
}
.sidebar-brand {
  height: 84px;
  gap: 4px;
  margin: 0 4px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  padding: 6px 8px 11px;
}
.brand-mark, .brand-mark img { width: 58px; height: 30px; }
.brand-mark img { filter: drop-shadow(0 4px 9px rgb(0 0 0 / 23%)); }
.brand-copy strong {
  color: #e9ecf3;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .11em;
}
.nav { gap: 3px; padding: 0 2px; }
.nav-group-title {
  margin: 15px 11px 5px;
  color: #626c80;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: .1em;
}
.nav-group-overview { margin-top: 0; }
.nav-button {
  height: 43px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--chrome-radius);
  padding: 0 10px;
  color: #9ca5b7;
  font-size: 13px;
  font-weight: 480;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.nav-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  padding: 5px;
  background: rgb(255 255 255 / 3.5%);
  color: #7f899d;
  stroke-width: 1.75;
  transition: color .16s, background .16s;
}
.nav-button:hover {
  border-color: rgb(255 255 255 / 5%);
  background: rgb(255 255 255 / 4%);
  color: #d8dde7;
  transform: none;
}
.nav-button:hover svg { background: rgb(255 255 255 / 6%); color: #b8c0d0; }
.nav-button.active {
  border-color: rgb(129 136 235 / 19%);
  background: rgb(112 119 224 / 12%);
  color: #f0f2f7;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 2%);
  font-weight: 560;
}
.nav-button.active svg { background: rgb(119 126 231 / 18%); color: #aeb4ff; }
.sidebar-version {
  min-height: 64px;
  gap: 5px;
  margin: auto 4px 0;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--chrome-radius);
  padding: 11px 12px;
  background: rgb(255 255 255 / 2.5%);
}
.sidebar-version strong {
  color: #949daf;
  font-size: 13px;
  font-weight: 470;
  letter-spacing: .015em;
}
.sidebar-version small { color: #626d80; font-size: 10.5px; font-weight: 450; }
.topbar {
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid #e7eaf0;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 6px 22px rgb(25 32 52 / 4%);
  backdrop-filter: blur(18px);
}
.topbar::after { display: none; }
.title { gap: 11px; }
.title-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 1px solid #e3e6f5;
  border-radius: var(--chrome-radius);
  background: var(--chrome-indigo-soft);
  color: #656bd7;
}
.title-mark svg { width: 19px; height: 19px; stroke-width: 1.8; }
.title-copy h1 { color: #252c3a; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.actions { gap: 9px; }
.service-state {
  height: 34px;
  gap: 8px;
  border: 1px solid #e4eee9;
  border-radius: var(--chrome-radius);
  padding: 0 11px;
  background: #f7fbf9;
  color: #65756d;
  font-size: 11px;
  font-weight: 520;
}
.state-dot { width: 7px; height: 7px; flex-basis: 7px; }
.header-icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 1px solid #e4e7ef;
  border-radius: var(--chrome-radius);
  background: #f7f8fb;
  color: #717a8a;
  box-shadow: none;
}
.header-icon-button svg { width: 18px; height: 18px; }
.header-icon-button:hover:not(:disabled) {
  border-color: #d7daec;
  background: var(--chrome-indigo-soft);
  color: #5f65cc;
  box-shadow: none;
  transform: none;
}
.account-menu { margin-left: 2px; }
.admin-chip {
  min-width: 210px;
  height: 46px;
  gap: 10px;
  border: 1px solid #e5e8ee;
  border-radius: 12px;
  padding: 4px 9px 4px 5px;
  background: #f8f9fb;
  box-shadow: none;
}
.admin-chip:hover { border-color: #dce0e9; background: #f5f6fa; }
.admin-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 0;
  background: linear-gradient(145deg, #7b80e7, #5d63cf);
  box-shadow: 0 4px 11px rgb(80 86 180 / 17%);
}
.admin-avatar svg { width: 20px; height: 20px; stroke-width: 1.6; }
.admin-identity { gap: 3px; }
.admin-identity strong { color: #313846; font-size: 12px; font-weight: 600; }
.admin-identity span { color: #8b94a3; font-size: 10px; }
.admin-menu-chevron { color: #969eac; }
.account-dropdown { border-radius: 12px; box-shadow: 0 16px 40px rgb(23 31 52 / 13%); }

@media (max-width: 1180px) {
  .admin-chip { min-width: 190px; }
}
@media (max-width: 840px) {
  :root { --soy-sider-width: 64px; }
  .sidebar { padding: 8px; }
  .sidebar-brand { width: 48px; height: 54px; margin: 2px 0 7px; padding: 0; }
  .brand-mark, .brand-mark img { width: 43px; height: 29px; }
  .brand-copy, .nav-group-title, .nav-button span, .sidebar-version { display: none; }
  .nav { padding: 0; }
  .nav-button { justify-content: center; padding: 0; }
  .nav-button svg { width: 32px; height: 32px; flex-basis: 32px; padding: 6px; }
  .topbar { padding-inline: 14px; }
  .admin-chip, .service-state { display: none; }
}

/* Final user profile composition: continuous surfaces without dividing lines. */
.modal .user-detail-modal { width: min(920px, 96vw); }
.modal .user-detail-modal .modal-body { background: #fff; }
.user-profile-header { min-height: 112px; gap: 17px; border: 0; padding: 24px 28px 13px; }
.user-profile-avatar {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border: 4px solid #fff;
  background: #eef0ff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgb(39 49 76 / 13%), 0 0 0 1px #e5e8ef;
}
.user-profile-name strong { max-width: 320px; color: #222b39; font-size: 20px; font-weight: 620; }
.user-profile-name span { color: #667284; font-size: 13px; }
.user-profile-name > small { max-width: 480px; margin-top: 9px; color: #abb2bd; font-size: 9.5px; }
.user-profile-status { gap: 6px; }
.user-profile-dates {
  min-height: 44px;
  gap: 28px;
  border: 0;
  padding: 0 28px 15px 113px;
  background: #fff;
}
.user-profile-dates > span,
.user-profile-dates > span + span { gap: 7px; border: 0; padding: 0; }
.user-profile-dates small { color: #a0a8b4; font-size: 9.5px; }
.user-profile-dates strong { color: #626d7d; font-size: 10.5px; font-weight: 560; }
.user-overview-section { padding: 5px 28px 22px; }
.user-section-heading { min-height: 28px; }
.user-section-heading h3 { color: #303949; font-size: 12.5px; font-weight: 620; }
.user-overview-rows {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 7px 15px;
  background: #f7f8fb;
}
.user-overview-row { min-height: 60px; border: 0; }
.user-overview-row > span { width: 60px; flex-basis: 60px; color: #7f8998; font-size: 10px; font-weight: 580; }
.user-overview-row > div { align-items: center; }
.user-overview-metric { gap: 7px; border: 0; padding: 0 13px; }
.user-overview-metric + .user-overview-metric { border: 0; }
.user-overview-metric small { color: #969fad; font-size: 9.5px; }
.user-overview-metric strong { color: #354052; font-size: 13.5px; font-weight: 650; }
.user-controls-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .85fr);
  gap: 30px;
  margin: 0 28px 26px;
  border: 0;
  border-radius: 12px;
  padding: 19px 20px 20px;
  background: #f7f8fb;
}
.user-control-section { padding: 0; }
.user-control-section:only-child { grid-column: 1 / -1; }
.user-control-section + .user-control-section { border: 0; }
.user-membership-form { gap: 10px; margin-top: 12px; }
.user-membership-form label { color: #7f8998; font-size: 9.5px; }
.user-membership-form .field,
.user-membership-form .select,
.user-account-control > .field { height: 37px; border-color: #e0e4eb; background-color: #fff; font-size: 11px; }
.user-membership-form > button { height: 37px; }
.user-account-control { margin-top: 12px; }
.user-account-control > div { gap: 8px; margin-top: 10px; }
.user-account-control button { height: 34px; }

@media (max-width: 820px) {
  .user-controls-layout { grid-template-columns: 1fr; gap: 22px; }
  .user-control-section + .user-control-section { border: 0; }
}
@media (max-width: 620px) {
  .user-profile-header { padding: 20px 18px 10px; }
  .user-profile-avatar { width: 56px; height: 56px; flex-basis: 56px; }
  .user-profile-name strong { font-size: 17px; }
  .user-profile-dates { gap: 0; padding: 2px 18px 14px; }
  .user-profile-dates > span + span { border: 0; }
  .user-overview-section { padding: 4px 18px 18px; }
  .user-controls-layout { margin: 0 18px 20px; padding: 17px; }
  .user-overview-row > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-overview-metric:nth-child(3),
  .user-overview-metric:nth-child(n + 3) { border: 0; }
}


/* Session-aware startup and sign-in transitions. */
.startup-screen {
  position: fixed;
  z-index: 400;
  inset: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgb(99 102 241 / 10%), transparent 24%),
    radial-gradient(circle at 18% 18%, rgb(83 159 255 / 9%), transparent 30%),
    radial-gradient(circle at 82% 82%, rgb(79 209 197 / 8%), transparent 28%),
    linear-gradient(145deg, #f9faff 0%, #f3f5fb 55%, #f8fafc 100%);
  color: #242d3e;
  opacity: 1;
  transition: opacity .45s ease, visibility .45s ease;
}
.startup-screen::before {
  content: "";
  position: absolute;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  border: 1px solid rgb(103 108 210 / 7%);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(103 108 210 / 2.5%), 0 0 0 140px rgb(103 108 210 / 1.5%);
  pointer-events: none;
}
.startup-screen.leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.startup-visual {
  position: relative;
  width: 118px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}
.startup-crown {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 48px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 13px 18px rgb(54 64 128 / 18%));
  animation: startup-crown-float 2.4s ease-in-out infinite;
}
.startup-crown img { width: 82px; height: 48px; display: block; object-fit: contain; }
.startup-orbit { position: absolute; border-radius: 50%; }
.orbit-outer {
  inset: -4px 12px;
  border: 1px solid rgb(89 97 210 / 12%);
  border-top-color: #6970db;
  border-right-color: rgb(105 112 219 / 34%);
  animation: startup-orbit-spin 2.2s linear infinite;
}
.orbit-inner {
  inset: 6px 22px;
  border: 1px dashed rgb(89 97 210 / 16%);
  animation: startup-orbit-spin 5.2s linear infinite reverse;
}
.startup-spark { position: absolute; z-index: 3; width: 6px; height: 6px; border-radius: 50%; background: #6970db; box-shadow: 0 0 0 5px rgb(105 112 219 / 10%); }
.spark-one { top: 8px; right: 14px; animation: startup-spark-pulse 1.8s ease-in-out infinite; }
.spark-two { bottom: 10px; left: 18px; width: 4px; height: 4px; background: #42b9ac; box-shadow: 0 0 0 4px rgb(66 185 172 / 10%); animation: startup-spark-pulse 1.8s .7s ease-in-out infinite; }
.startup-brand { color: #333d50; font-size: 21px; font-weight: 680; letter-spacing: .12em; }
.startup-copy { display: grid; justify-items: center; gap: 7px; margin-top: 25px; }
.startup-copy strong { font-size: 14px; font-weight: 610; letter-spacing: .02em; }
.startup-copy span { color: #8a94a4; font-size: 11px; font-weight: 450; }
.startup-progress { width: 184px; height: 3px; overflow: hidden; margin-top: 21px; border-radius: 999px; background: rgb(89 97 210 / 9%); }
.startup-progress i { width: 44%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, transparent, #6970db 30%, #8990ec 70%, transparent); animation: startup-progress 1.35s ease-in-out infinite; }
.startup-retry {
  min-width: 108px;
  height: 38px;
  margin-top: 22px;
  border: 1px solid #dfe3ed;
  border-radius: 12px;
  padding: 0 20px;
  background: rgb(255 255 255 / 82%);
  color: #555ecc;
  box-shadow: 0 6px 20px rgb(42 52 91 / 7%);
  font-size: 12px;
  font-weight: 580;
  cursor: pointer;
}
.startup-retry:hover { border-color: #cfd4e8; background: #fff; transform: translateY(-1px); }
.startup-screen.mode-error .startup-progress { display: none; }
.startup-screen.mode-error .orbit-outer { border-top-color: #d95866; animation-play-state: paused; }
.startup-screen.mode-error .spark-one { background: #d95866; box-shadow: 0 0 0 5px rgb(217 88 102 / 10%); }
.startup-screen.mode-login .startup-copy strong { color: #4f58c8; }
.auth-screen.auth-entering .auth-card { animation: auth-card-enter .55s cubic-bezier(.2, .8, .25, 1) both; }
.shell.shell-entering { animation: workspace-enter .48s cubic-bezier(.2, .8, .25, 1) both; }
.shell.shell-entering.from-login { animation-name: workspace-login-enter; animation-duration: .56s; }

@keyframes startup-orbit-spin { to { transform: rotate(360deg); } }
@keyframes startup-crown-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
@keyframes startup-spark-pulse { 0%, 100% { opacity: .45; transform: scale(.72); } 50% { opacity: 1; transform: scale(1); } }
@keyframes startup-progress { from { transform: translateX(-115%); } to { transform: translateX(250%); } }
@keyframes auth-card-enter { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes workspace-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes workspace-login-enter { from { opacity: 0; transform: translateY(12px) scale(.995); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 620px) {
  .startup-visual { transform: scale(.92); }
  .startup-brand { font-size: 19px; }
  .startup-copy { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .startup-crown,
  .startup-orbit,
  .startup-spark,
  .startup-progress i,
  .auth-screen.auth-entering .auth-card,
  .shell.shell-entering { animation: none !important; }
}

/* Premium management authentication surface. */
.auth-screen {
  position: fixed;
  z-index: 390;
  inset: 0;
  min-height: 100vh;
  overflow: auto;
  padding: 34px;
  background:
    linear-gradient(116deg, transparent 0 57%, rgb(102 91 255 / 8%) 57% 68%, transparent 68%),
    linear-gradient(154deg, rgb(39 202 220 / 8%) 0 13%, transparent 13% 100%),
    linear-gradient(132deg, #090e1d 0%, #151a32 46%, #0c1429 100%);
}
.auth-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: .34;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(118deg, rgb(158 168 255 / 10%) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(28deg, rgb(255 255 255 / 5%) 0 1px, transparent 1px 74px);
  -webkit-mask-image: linear-gradient(110deg, #000 0%, rgb(0 0 0 / 82%) 42%, transparent 84%);
  mask-image: linear-gradient(110deg, #000 0%, rgb(0 0 0 / 82%) 42%, transparent 84%);
}
.auth-screen::after {
  content: "";
  position: fixed;
  top: -16vh;
  right: -8vw;
  width: min(48vw, 720px);
  height: 116vh;
  background: linear-gradient(158deg, rgb(107 99 255 / 22%), rgb(42 201 220 / 4%) 58%, transparent 58%);
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 76%);
  filter: drop-shadow(-34px 0 70px rgb(83 78 225 / 16%));
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: min(890px, 96vw);
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(420px, 58%);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 26px;
  padding: 0;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 36px 90px rgb(0 7 30 / 34%), 0 2px 7px rgb(0 0 0 / 12%);
}
.auth-card .top-logo {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  gap: 9px;
  margin: 0;
  border-radius: 0;
  padding: 52px 34px;
  background:
    linear-gradient(132deg, transparent 0 53%, rgb(110 229 223 / 10%) 53% 54%, transparent 54%),
    linear-gradient(154deg, #1c2450 0%, #303873 50%, #1d285b 100%);
}
.auth-card .top-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  opacity: .46;
  background-image:
    repeating-linear-gradient(120deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(30deg, rgb(255 255 255 / 5%) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, transparent 3%, #000 28%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 3%, #000 28%, #000 76%, transparent 100%);
}
.auth-card .top-logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: -12px;
  width: 260px;
  height: 210px;
  display: block;
  background: linear-gradient(145deg, rgb(121 130 255 / 25%), rgb(86 221 217 / 7%));
  clip-path: polygon(42% 0, 100% 18%, 82% 100%, 0 76%);
}
.auth-card .top-logo .login-brand-mark {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 76px;
  margin-bottom: 7px;
}
.auth-card .top-logo .login-brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgb(103 221 224 / 55%), transparent);
  filter: blur(3px);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transform: translateX(-50%);
}
.auth-card .top-logo .login-brand-mark img { position: relative; z-index: 1; width: 130px; height: 76px; filter: drop-shadow(0 12px 20px rgb(5 12 49 / 36%)); }
.auth-card .top-logo strong {
  position: relative;
  z-index: 2;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 31px;
  font-weight: 720;
  letter-spacing: .2em;
  text-shadow: 0 8px 26px rgb(6 12 45 / 28%);
}
.auth-card .top-logo > span:last-child {
  position: relative;
  z-index: 2;
  margin-top: 3px;
  color: rgb(225 229 255 / 66%);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: .34em;
}
.auth-brand-grid { position: absolute; z-index: 0; inset: 14% -10% 10%; border: 1px solid rgb(178 185 255 / 10%); transform: skewY(-8deg); pointer-events: none; }
.auth-brand-plane { position: absolute; z-index: 0; display: block; pointer-events: none; }
.auth-brand-plane.plane-a { top: 7%; left: -32%; width: 90%; height: 36%; background: linear-gradient(110deg, transparent, rgb(128 137 255 / 31%)); clip-path: polygon(0 0, 100% 28%, 72% 100%, 14% 68%); animation: auth-plane-shift 8s ease-in-out infinite; }
.auth-brand-plane.plane-b { right: -28%; bottom: 2%; width: 88%; height: 42%; background: linear-gradient(138deg, rgb(58 209 215 / 3%), rgb(58 209 215 / 22%)); clip-path: polygon(27% 0, 100% 24%, 84% 100%, 0 72%); animation: auth-plane-shift 10s ease-in-out infinite reverse; }
.auth-brand-beam { position: absolute; z-index: 1; height: 1px; display: block; background: linear-gradient(90deg, transparent, rgb(168 175 255 / 72%), transparent); pointer-events: none; }
.auth-brand-beam.beam-a { top: 27%; left: 6%; width: 72%; transform: rotate(-13deg); animation: auth-beam-pulse 4.8s ease-in-out infinite; }
.auth-brand-beam.beam-b { right: -4%; bottom: 25%; width: 62%; background: linear-gradient(90deg, transparent, rgb(103 224 219 / 62%), transparent); transform: rotate(18deg); animation: auth-beam-pulse 6s ease-in-out infinite reverse; }
.auth-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px 66px 43px;
  background: linear-gradient(160deg, #fff 0%, #fbfcff 100%);
}
.auth-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.auth-heading .auth-service-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 0; background: transparent; color: #242c3b; box-shadow: none; }
.auth-heading .auth-service-icon img { width: 24px; height: 24px; filter: brightness(0); opacity: .8; }
.auth-card h1 { margin: 0; color: #242c3b; font-size: 25px; font-weight: 660; letter-spacing: -.025em; }
.auth-form { gap: 18px; }
.auth-form label,
.auth-field > label { gap: 8px; color: #697386; font-size: 11px; font-weight: 560; letter-spacing: .01em; }
.auth-form .field,
#passwordResetForm .field {
  height: 47px;
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  padding: 0 15px;
  background: #f7f8fb;
  color: #293244;
  font-size: 12px;
  box-shadow: inset 0 1px 2px rgb(29 39 63 / 2%);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form .field::placeholder { color: #b1b8c4; }
.auth-form .field:hover { border-color: #d5dae5; background: #fafbfc; }
.auth-form .field:focus { border-color: #7a82e5; background: #fff; box-shadow: 0 0 0 4px rgb(103 111 215 / 10%), 0 6px 17px rgb(43 51 89 / 5%); outline: 0; }
.auth-form .primary {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(105deg, #5961d2 0%, #6972e2 55%, #5961d2 100%);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: 0 11px 25px rgb(70 78 180 / 23%);
  font-size: 12px;
  font-weight: 630;
  letter-spacing: .05em;
  transition: transform .2s ease, box-shadow .2s ease, background-position .3s ease;
}
.auth-form .primary::after { content: "›"; position: absolute; right: 18px; top: 50%; font-size: 21px; font-weight: 350; line-height: 1; opacity: .72; transform: translateY(-54%); }
.auth-form .primary:hover:not(:disabled) { background-position: 100% 0; box-shadow: 0 14px 29px rgb(70 78 180 / 29%); transform: translateY(-1px); }
.auth-form .primary:active:not(:disabled) { transform: translateY(0); }
.auth-form .primary:disabled::after { display: none; }
.auth-link { justify-self: end; margin-top: -7px; padding: 3px 0; color: #727bd9; font-size: 11px; font-weight: 550; }
.auth-link:hover { color: #4f58c7; }
.auth-error { min-height: 15px; margin: -5px 0 -4px; font-size: 11px; line-height: 1.45; }
.email-code-field { grid-template-columns: minmax(0, 1fr) 108px; gap: 10px; }
#passwordResetForm { gap: 12px; }
#passwordResetForm .email-code-field .ghost-button {
  height: 47px;
  border: 1px solid #dde1ec;
  border-radius: 12px;
  padding-inline: 12px;
  background: #fff;
  color: #626bd0;
  font-size: 11px;
  font-weight: 570;
}
#passwordResetForm .email-code-field .ghost-button:hover:not(:disabled) { border-color: #cfd4e8; background: #f7f8ff; }
.password-rule { margin-top: -3px; color: #9ba3b1; font-size: 9.5px; line-height: 1.5; }

@keyframes auth-plane-shift { 0%, 100% { translate: 0 0; opacity: .62; } 50% { translate: 8px -6px; opacity: 1; } }
@keyframes auth-beam-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (max-width: 760px) {
  .auth-screen { align-items: start; padding: 18px; }
  .auth-card { width: min(430px, 100%); min-height: 0; grid-template-columns: 1fr; margin-block: auto; border-radius: 22px; }
  .auth-card .top-logo { min-height: 190px; padding: 30px 24px 27px; }
  .auth-card .top-logo::after { width: 190px; height: 150px; }
  .auth-card .top-logo .login-brand-mark,
  .auth-card .top-logo .login-brand-mark img { width: 88px; height: 48px; }
  .auth-card .top-logo strong { font-size: 23px; }
  .auth-panel { padding: 31px 30px 32px; }
  .auth-heading { margin-bottom: 24px; }
  .auth-card h1 { font-size: 22px; }
}

@media (max-width: 420px) {
  .auth-screen { padding: 12px; }
  .auth-card .top-logo { min-height: 158px; }
  .auth-panel { padding: 26px 22px 28px; }
  .auth-form .field, #passwordResetForm .field, #passwordResetForm .email-code-field .ghost-button { height: 45px; }
  .auth-form .primary { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand-plane, .auth-brand-beam { animation: none !important; }
}
