@font-face {
  font-family: 'Login Inter';
  src: url('/brand/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* The public entry has a fixed light palette; theme preferences belong to the workspace. */
.login {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  display: grid;
  place-items: center;
  background: #eeecf2;
  color: #292536;
  color-scheme: light;
  font-family: 'Login Inter', Inter, Arial, sans-serif;
}
.login-shell {
  width: min(1560px, 100%);
  min-height: calc(100svh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 8px;
  padding: 8px;
  border-radius: 32px;
  background: #fff;
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 28px;
  border-radius: 24px;
  background: #f7f6fa;
}
.login-card {
  width: min(360px, 100%);
  margin: auto 0;
  padding: 32px 0 48px;
  text-align: center;
}
.login .brand.product-brand {
  flex-direction: column;
  gap: 14px;
  margin: 0 0 48px;
  color: #292536;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.25px;
}
.login .brand.product-brand img {
  width: 36px;
  height: 36px;
  max-height: none;
  object-position: center;
}
.login-eyebrow {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #e0daec;
  border-radius: 5px;
  background: #efebf6;
  color: #645578;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.1px;
  line-height: 1.3;
}
.login-card h1 {
  margin: 24px -12px 18px;
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: #292536;
}
.login-card > .login-description {
  max-width: 320px;
  margin: 0 auto 36px;
  color: #716b7d;
  font-size: 13px;
  line-height: 1.75;
}
.login-card .login-submit {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  border-radius: 9px;
  background: #2a1b63;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  transition: background .15s ease, box-shadow .15s ease;
}
.login-card .login-submit:hover { background: #3b287e; box-shadow: 0 4px 14px #2a1b6318; }
.login-card .login-submit:active { background: #21134f; }
.login a:focus-visible { outline: 3px solid #947cc7; outline-offset: 4px; }
.login-card > .login-session-hint {
  margin: 16px 0 0;
  color: #7b7485;
  font-size: 11px;
  line-height: 1.8;
}
.login-card > #login-notice { margin: 18px 0 0; color: #8b3c32; font-size: 12px; line-height: 1.6; }
.login-card > #login-notice:empty { display: none; }
.login-footer { margin: 0; color: #686170; font-size: 11px; line-height: 1.8; }
.login-footer span { color: #837b8d; }
.login-visual { position: relative; overflow: hidden; border-radius: 24px; background: #e6ddf2; }
.login-visual img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center; }

@media (min-width: 1700px) { .login-shell { min-height: min(960px, calc(100svh - 80px)); } }
@media (max-width: 1000px) {
  .login { padding: 16px; }
  .login-shell { min-height: calc(100svh - 32px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; }
  .login-panel { padding: 36px 24px 24px; border-radius: 20px; }
  .login-visual { border-radius: 20px; }
  .login-card h1 { font-size: 30px; letter-spacing: -1.2px; }
}
@media (max-width: 700px) {
  .login { padding: 12px; }
  .login-shell { min-height: calc(100svh - 24px); grid-template-columns: minmax(0, 1fr); padding: 6px; border-radius: 24px; }
  .login-panel { min-height: calc(100svh - 36px); padding: 28px 24px 24px; border-radius: 18px; }
  .login-card { padding: 24px 0 40px; }
  .login .brand.product-brand { margin-bottom: 40px; }
  .login-card h1 { margin-left: -8px; margin-right: -8px; font-size: clamp(24px, 7.5vw, 36px); }
  .login-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) { .login-submit { transition: none; } }

/* 25/11: while we ask who is here, a quiet opening; the login only shows when there is no session at all. */
.opening {
  min-height: 100svh;
  padding: 24px;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: #6b6479;
  font: 14px/20px Inter, Arial, sans-serif;
  opacity: 0;
  animation: opening-in .2s ease-out .4s forwards;
}
.opening[hidden] { display: none; }
.opening p { margin: 0; }
.opening a { color: #6550ca; }
.opening-enter { visibility: hidden; animation: opening-in 0s 15s forwards; }
.opening.is-page { opacity: 1; animation: none; }
.opening-page { margin: 0; background: #faf9fc; }
.opening-access { max-width: 640px; margin: 0 auto; gap: 20px; font-family: 'Login Inter', Inter, Arial, sans-serif; }
.opening-access h1 { margin: 0; color: #292536; font-size: 28px; line-height: 1.2; letter-spacing: -.6px; }
.opening-access p { max-width: 48ch; line-height: 1.6; }
.opening-access #access-retry { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 9px; background: #2a1b63; color: #fff; font-weight: 600; text-decoration: none; }
.opening-access a:focus-visible { outline: 3px solid #947cc7; outline-offset: 4px; }
[data-theme=dark] .opening { color: #bdb6cb; }
[data-theme=dark] .opening a { color: #b7a8ff; }
@keyframes opening-in { to { opacity: 1; visibility: visible; } }
