/* Customer entrance: palette and motion match the desktop LoginShell. */
@font-face { font-family: 'Fira Code'; font-weight: 400; font-display: swap; src: url('fonts/FiraCode-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Fira Code'; font-weight: 600; font-display: swap; src: url('fonts/FiraCode-SemiBold.woff2') format('woff2'); }
:root {
  color-scheme: light;
  --login-accent: #ed3026; --login-primary: #db2c23; --login-accent-hover: #ce241c;
  --login-text: #352625; --login-muted: #826b68; --login-soft: #fff5f3;
  --login-border: #f6d5d1; --login-shadow: rgba(205,40,30,.14);
  --bg: #fff; --fg: var(--login-text); --red: var(--login-accent); --border: var(--login-border);
}
* { box-sizing: border-box; }
body.login-page { margin: 0; color: var(--login-text); background: var(--bg); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
.login-header { flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--login-border); background: #fff; z-index: 2; }
.login-brand { display: flex; align-items: center; }
.login-brand img { display: block; object-fit: contain; width: 96px; height: 29px; }
.login-operator { display: flex; align-items: center; justify-content: center; width: 66px; height: 24px; border-radius: 20px; background: #6250f5; color: white; }
.login-hero { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; background: radial-gradient(ellipse at 50% 40%, #fff 25%, var(--login-soft) 100%); }
.login-floating-words, .login-hero-wash { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.login-floating-words { opacity: .24; user-select: none; }
.login-hero-wash { background: radial-gradient(ellipse at center, #ffffffd9 0%, #ffffff80 48%, transparent 76%); }
.login-layout { position: relative; z-index: 1; min-height: 100%; display: flex; justify-content: center; align-items: center; padding: 32px 16px; }
.login-landing { width: min(977px, 100%); padding: 0 40px; text-align: center; }
.login-title { font-size: clamp(20px, 3.6vw, 38px); font-weight: 600; line-height: 1.65; white-space: pre-wrap; min-height: max(144px, 4.95em); margin: 0; color: var(--login-accent); user-select: none; }
.login-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(560px, 100%); margin: 112px auto 0; }
.login-primary, #submitBtn { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 14px 20px; border: 1px solid var(--login-primary); border-radius: 12px; background: var(--login-primary); color: white; text-decoration: none; font: 400 12px 'Fira Code', monospace; letter-spacing: 2.16px; box-shadow: 0 12px 32px var(--login-shadow); transition: background-color .3s, border-color .3s, box-shadow .3s, transform .3s; cursor: pointer; }
.login-primary:hover, #submitBtn:hover:not(:disabled) { background: var(--login-accent-hover); border-color: var(--login-accent-hover); box-shadow: 0 16px 40px var(--login-shadow); transform: translateY(-1px); }
.login-entry-icons { display: flex; align-items: center; gap: 16px; }
.login-arrow { transition: transform .3s; }
.login-primary:hover .login-arrow { transform: translateX(2px); }
.login-type-cursor { animation: login-blink 1s ease-in-out infinite; }
.login-floating-word { position: absolute; top: 0; white-space: nowrap; color: var(--login-accent); font-family: 'Fira Code', monospace; font-size: 16px; font-weight: 700; filter: blur(.05px); transform: translate3d(-50%,var(--start),0); animation: login-float var(--dur) linear var(--delay) infinite; will-change: transform,opacity; }
.login-floating-word-depth-1 { font-size: 15px; }
.login-floating-word-depth-2 { font-size: 17px; }
.login-pointer { position: fixed; top: 0; left: 0; z-index: 10; border-radius: 50%; overflow: hidden; pointer-events: none; background: var(--login-accent); box-shadow: 0 8px 28px var(--login-shadow); opacity: 0; transition: opacity .2s; will-change: transform; }
.login-pointer-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: opacity .14s; }
.login-pointer[data-over-title='true'] .login-pointer-logo { opacity: 0; }
.login-pointer-title { position: absolute; top: 0; left: 0; text-align: center; color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card { width: min(560px, 100%); padding: 32px; border: 1px solid var(--login-border); border-radius: 16px; background: #fffffff2; box-shadow: 0 12px 32px var(--login-shadow); }
.login-back { display: inline-block; color: var(--login-muted); text-decoration: none; font-size: 14px; padding: 8px 0; margin-bottom: 12px; }
.login-back:hover { color: var(--login-accent); }
.logo { font-size: 24px; color: var(--login-accent); margin: 0 0 12px; font-weight: 600; }
.setup-note, .org-hint { font-size: 14px; line-height: 1.7; color: var(--login-muted); margin: 0 0 20px; }
label { display: block; font-size: 14px; margin-bottom: 8px; }
input:not(.remember-check) { display: block; width: 100%; height: 48px; padding: 0 16px; margin: 0 0 20px; border: 1px solid var(--login-border); border-radius: 12px; background: white; color: var(--login-text); font: inherit; font-size: 16px; }
input:focus { outline: none; border-color: var(--login-accent); box-shadow: 0 0 0 2px var(--login-border); }
:focus-visible { outline: 2px solid var(--login-accent); outline-offset: 4px; }
.pw-wrapper { position: relative; margin-bottom: 20px; }
.pw-wrapper input { padding-right: 48px; margin: 0; }
.pw-toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; background: none; border: 0; color: var(--login-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--login-accent); }
.remember-toggle { position: absolute; right: 12px; top: 13px; margin: 0; cursor: pointer; }
.remember-check { width: 20px; height: 20px; margin: 0; accent-color: var(--login-accent); }
.remember-dot { display: none; }
#submitBtn { width: 100%; justify-content: center; margin-top: 24px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.error { display: none; border: 1px solid var(--login-border); background: var(--login-soft); color: var(--login-accent-hover); padding: 12px 16px; border-radius: 12px; font-size: 14px; margin: 16px 0; }
.toggle { text-align: center; color: var(--login-muted); margin-top: 20px; font-size: 14px; }
.toggle a { color: var(--login-accent); }
.version-label { position: fixed; right: 12px; bottom: 8px; font: 10px 'Fira Code',monospace; color: var(--login-muted); opacity: .5; pointer-events: none; }
.login-noscript { position: fixed; bottom: 20px; text-align: center; width: 100%; }
.login-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@keyframes login-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes login-float {
  0% { opacity: 0; transform: translate3d(-50%,var(--start),0); }
  12% { opacity: .72; }
  48% { opacity: .88; transform: translate3d(calc(-50% + var(--sway)),42vh,0); }
  88% { opacity: .62; }
  100% { opacity: 0; transform: translate3d(calc(-50% - var(--sway)),var(--end),0); }
}
@media (max-width: 639px) {
  .login-header { height: 48px; flex-basis: 48px; }
  .login-operator { height: 32px; }
  .login-landing { padding: 0; }
  .login-entries { grid-template-columns: 1fr; margin-top: 64px; max-width: 360px; }
  .card { padding: 24px; }
  .login-floating-word { font-size: 13px; }
  .login-floating-words { opacity: .18; }
  .login-floating-word:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .login-floating-word { animation: none; top: var(--rest); transform: translateX(-50%); opacity: .65; }
  .login-type-cursor { animation: none; display: none; }
  .login-pointer { display: none; }
}
