/* Login only: keep the artwork out of the signed-in workspace. */
.auth-screen {
  position: fixed;
  inset: 0;
  height: var(--login-scene-height, 100dvh);
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y pinch-zoom;
  background-color: #38264e;
  padding: 0;
  isolation: isolate;
}
.login-backdrop {
  position: absolute;
  inset: 0;
  height: var(--login-scene-height, 100dvh);
  background-image: linear-gradient(180deg, rgba(19, 13, 32, .66) 0, rgba(28, 16, 45, .12) 180px, rgba(28, 16, 45, .22) 100%), url("../assets/Images/login-background.jpg?v=1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.login-form-stage {
  position: absolute;
  inset: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: max(112px, calc(env(safe-area-inset-top) + 88px)) max(24px, env(safe-area-inset-right)) max(112px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
html:has(#authScreen:not([hidden])), body:has(#authScreen:not([hidden])) {
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #38264e;
}
body:has(#authScreen:not([hidden])) {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 0;
}
.login-wordmark {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 20px));
  left: max(36px, calc(env(safe-area-inset-left) + 24px));
  display: flex;
  align-items: baseline;
  gap: .28em;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(16, 8, 28, .55);
}
.login-wordmark > span:last-child { color: #ffdc91; }
.auth-screen .auth-card {
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  background: rgba(248, 244, 255, .92);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  padding: 32px;
  color: #211c32;
  box-shadow: 0 20px 65px rgba(24, 12, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
}
@media (max-height: 650px) {
  .login-form-stage { padding-top: 88px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
.auth-screen.login-layout-ready .auth-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 48px));
  will-change: transform;
  backface-visibility: hidden;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-screen .auth-card {
    background: rgba(248, 244, 255, .62);
    -webkit-backdrop-filter: blur(24px) saturate(115%);
    backdrop-filter: blur(24px) saturate(115%);
  }
}
.auth-card > div:first-child { text-align: center; }
.auth-card > div:first-child > .eyebrow { display: none; }
.auth-card h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.025em; }
.auth-card #authTitle { font-weight: 850; }
.auth-card #authDescription { color: #44394f; font-size: 14px; }
.auth-card .auth-form { gap: 22px; }
.auth-card .auth-form > label { color: #2f253f; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; gap: 0; }
.auth-input-line { position: relative; display: block; }
.auth-card .auth-input-line input {
  width: 100%; min-width: 0; min-height: 44px;
  background: transparent; color: #211c32;
  border: 0; border-bottom: 1.5px solid #655570; border-radius: 0;
  padding: 8px 30px 8px 0; font-size: 16px;
  box-shadow: none;
  /* Clip autofill's background paint rather than replacing the glass with an
     opaque inset shadow. Also covers password managers that set inline color. */
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #211c32;
  caret-color: #211c32;
}
.auth-card .auth-input-line input:is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: #211c32 !important;
  caret-color: #211c32;
}
@media (forced-colors: active) {
  .auth-card .auth-input-line input {
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: CanvasText !important;
  }
}
.auth-input-line > i { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); color: #3c2d50; font-size: 14px; pointer-events: none; }
.auth-card .auth-input-line input:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: #211c32;
  caret-color: #211c32;
}
.auth-card #authSubmit { min-height: 46px; background: #292039; border-color: #292039; color: #fff; border-radius: 8px; }
.auth-card #authSubmit:hover:not(:disabled) { background: #40304f; border-color: #40304f; }
.auth-card .auth-mode-button { background: transparent; border-color: transparent; color: #352943; font-size: 13px; min-height: 44px; }
.auth-card .auth-mode-button:hover { background: rgba(255, 255, 255, .25); }
.auth-card button:focus-visible { outline: 2px solid #5631d4; outline-offset: 3px; }
.auth-card .auth-error { color: #8f241d; background: #fff0ed; text-align: left; }
@media (max-width: 600px) {
  .login-backdrop { background-position: 42% center; }
  .login-form-stage { padding: 96px 20px 32px; }
  .login-wordmark { left: max(20px, env(safe-area-inset-left)); }
}
