/* J.A.R.V.I.S. website: the sign-in screens (matching the app's sign-in) and small web-only adjustments to the console layout. */
body.web.signed-out #core, body.web.signed-out #hud { display: none; }
#auth { position: fixed; inset: 0; overflow-y: auto; background: #000; color: #ececec; display: flex; justify-content: center; padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; z-index: 100; }
#auth[hidden] { display: none; }
.wa-card { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2vh; }
.wa-orb { position: relative; width: 150px; height: 150px; margin-bottom: 8px; }
.wa-orb b { position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(circle, var(--tg-00ff41, #00FF41) 0%, color-mix(in srgb, var(--tg-00ff41, #00FF41) 45%, transparent) 40%, transparent 72%);
  box-shadow: 0 0 40px color-mix(in srgb, var(--tg-00ff41, #00FF41) 55%, transparent); animation: waPulse 3.2s ease-in-out infinite; }
.wa-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: color-mix(in srgb, var(--tg-00ff41, #00FF41) 80%, transparent);
  border-bottom-color: color-mix(in srgb, var(--tg-00ff41, #00FF41) 35%, transparent); animation: waSpin 6s linear infinite; }
.wa-orb i:nth-child(2) { inset: 14px; animation-duration: 4.5s; animation-direction: reverse; }
.wa-orb i:nth-child(3) { inset: 28px; animation-duration: 8s; }
@keyframes waSpin { to { transform: rotate(360deg); } }
@keyframes waPulse { 50% { transform: scale(1.06); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .wa-orb i, .wa-orb b { animation: none; } }
.wa-title { color: var(--tg-00ff41, #00FF41); font-size: 26px; font-weight: 700; letter-spacing: 6px; margin: 2px 0; }
.wa-sub { color: #9a9a9a; font-size: 11px; letter-spacing: 2px; text-align: center; }
.wa-pc { color: #8a8a8a; font-size: 12px; margin-top: 2px; }
.wa-form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.wa-two { display: flex; gap: 10px; } .wa-two > * { flex: 1; min-width: 0; }
.wa-field { position: relative; display: block; }
.wa-input { width: 100%; box-sizing: border-box; background: transparent; color: #ececec; border: 1px solid #3a3a3a; border-radius: 6px; padding: 18px 14px 8px; font: inherit; font-size: 16px; outline: none; }
.wa-input:focus { border-color: var(--tg-00ff41, #00FF41); }
.wa-field > span { position: absolute; left: 12px; top: 14px; color: #9a9a9a; font-size: 15px; pointer-events: none; transition: all .15s; background: #000; padding: 0 4px; }
.wa-input:focus + span, .wa-input:not(:placeholder-shown) + span { top: -8px; font-size: 12px; color: var(--tg-00ff41, #00FF41); }
.wa-input:not(:focus):not(:placeholder-shown) + span { color: #9a9a9a; }
.wa-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #9a9a9a; font-size: 11px; letter-spacing: 1px; cursor: pointer; padding: 6px; }
.wa-btn { width: 100%; margin-top: 6px; padding: 14px; border-radius: 26px; border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.wa-btn.primary { background: var(--tg-00ff41, #00FF41); color: #000; }
.wa-btn.primary:disabled { opacity: .35; cursor: default; }
.wa-btn:focus-visible, .wa-link:focus-visible, .wa-input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wa-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.wa-link { background: none; border: 0; color: var(--tg-00ff41, #00FF41); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 4px; }
.wa-row .wa-link:last-child:not(:first-child) { color: #9a9a9a; }
.wa-check { display: flex; gap: 8px; align-items: flex-start; color: #9a9a9a; font-size: 12px; line-height: 1.45; }
.wa-check input { accent-color: var(--tg-00ff41, #00FF41); margin-top: 2px; }
.wa-text { color: #bdbdbd; font-size: 14px; line-height: 1.5; margin: 0; }
.wa-msg { width: 100%; text-align: center; font-size: 13px; margin: 10px 0 0; }
.wa-msg.ok { color: var(--tg-00ff41, #00FF41); } .wa-msg.bad { color: #ffb74d; }
.wa-foot { color: #6a6a6a; font-size: 11px; text-align: center; margin-top: 26px; }
/* the console on a phone-width browser: the existing responsive rules apply; keep the composer above the iOS home bar */
body.web.signed-in { padding-bottom: env(safe-area-inset-bottom); }
.wa-field[hidden], .wa-msg[hidden] { display: none; }

/* Website = the J.A.R.V.I.S. chat screen only (as in the desktop app): no dashboard header, HUD widgets or PC-panel tab bar. */
body.web.signed-in #core, body.web.signed-in .frame-svg, body.web.signed-in .hdr, body.web.signed-in .lnav, body.web.signed-in .aicore,
body.web.signed-in .widget, body.web.signed-in .statusbar, body.web.signed-in .cmdbar, body.web.signed-in .tabbar { display: none !important; }
body.web.signed-in { background: #000; }
body.web.signed-in #hud > aside.panel { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; max-height: none !important;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important; transform: none !important; }
