/* Tela de entrada do Orion Demon 4 — papel de parede inteiro, cartão de vidro
   no estilo da tela de entrada do Windows 11, novidades e atualizações ao lado
   e a versão discreta no canto inferior direito. */
:root { --lg-glass: rgba(18, 10, 28, .55); --lg-stroke: rgba(255, 255, 255, .12); --lg-text: #f6f1fb; }
.hidden { display: none !important; }

body.lg {
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-y: auto;
  color: var(--lg-text); background: #07040d;
}
.lg-wall {
  position: fixed; inset: -2%; z-index: 0;
  background: #07040d url("/static/img/wall-aurora.webp") center / cover no-repeat;
  animation: lg-drift 40s ease-in-out infinite alternate;
}
@keyframes lg-drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, 1%); } }
.lg-shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 700px at 50% 45%, rgba(7, 4, 13, .05), rgba(7, 4, 13, .55) 70%),
    linear-gradient(180deg, rgba(7, 4, 13, .45) 0%, rgba(7, 4, 13, 0) 22%, rgba(7, 4, 13, 0) 70%, rgba(7, 4, 13, .7) 100%);
}

/* topo: marca e relógio */
.lg-top {
  position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px clamp(18px, 4vw, 48px) 0;
}
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-wordmark { width: 118px; height: auto; filter: drop-shadow(0 6px 22px rgba(255, 80, 40, .4)); }
.lg-brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.lg-brand-txt b { font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.lg-brand-txt small { font-size: 12px; color: rgba(246, 241, 251, .65); }
.lg-clock { display: flex; flex-direction: column; align-items: flex-end; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.lg-clock b { font-size: clamp(38px, 5vw, 64px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.lg-clock small { font-size: 15px; font-weight: 500; opacity: .85; margin-top: 6px; display: inline-block; }
.lg-clock small::first-letter { text-transform: uppercase; }

/* palco: cartão de entrada + painel lateral */
.lg-stage {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center;
  width: min(1180px, 100%); margin: 0 auto;
  min-height: calc(100vh - 170px); min-height: calc(100dvh - 170px); padding: 24px clamp(16px, 4vw, 48px) 80px;
}
/* um bloco só: abas Entrar · Novidades · Atualizações */
.lg-card {
  justify-self: center; width: 440px; max-width: 100%; display: flex; flex-direction: column; align-items: stretch;
  padding: 0; border-radius: 18px; overflow: hidden;
  background: var(--lg-glass); border: 1px solid var(--lg-stroke);
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 90px -40px rgba(255, 45, 85, .55);
  animation: lg-in .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes lg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lg-avatar {
  width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 60%), rgba(10, 5, 16, .65);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 0 0 7px rgba(255, 45, 85, .12), 0 14px 40px -10px rgba(0, 0, 0, .7);
  margin-bottom: 16px;
}
.lg-avatar img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(255, 70, 40, .45)); }
.lg-avatar span { font-size: 46px; font-weight: 600; color: #fff; }
.lg-avatar.letter { background: linear-gradient(135deg, var(--iris), var(--violet)); }
.lg-avatar.mfa { color: #fff; background: linear-gradient(135deg, rgba(255, 45, 85, .55), rgba(168, 85, 247, .55)); }
.lg-name { font-family: var(--font-body); font-size: 24px; font-weight: 600; letter-spacing: 0; text-align: center; }
.lg-hint { margin: 4px 0 18px; font-size: 13px; color: rgba(246, 241, 251, .7); text-align: center; }
.lg-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.lg-field {
  position: relative; display: flex; align-items: center; height: 44px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 2px solid rgba(255, 255, 255, .35); transition: border-color .15s, background .15s;
}
.lg-field:focus-within { background: rgba(0, 0, 0, .35); border-bottom-color: var(--iris); }
.lg-field input {
  flex: 1; min-width: 0; height: 100%; padding: 0 12px; background: transparent; border: 0; outline: none; color: var(--lg-text); font-size: 14.5px;
}
.lg-field input::placeholder { color: rgba(246, 241, 251, .5); }
.lg-ico { display: grid; place-items: center; width: 38px; color: rgba(246, 241, 251, .6); flex: none; margin-right: -8px; }
.lg-eye, .lg-go { display: grid; place-items: center; width: 38px; height: 36px; border-radius: 6px; color: rgba(246, 241, 251, .75); flex: none; }
.lg-eye:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lg-eye.on { color: var(--iris); }
.lg-go { margin-right: 3px; background: rgba(255, 255, 255, .1); color: #fff; }
.lg-go:hover { background: var(--iris); }
.lg-code { text-align: center; font-family: var(--font-mono); font-size: 22px !important; letter-spacing: .35em; padding-left: 50px !important; }
.lg-caps { font-size: 12px; color: var(--warn); display: flex; align-items: center; gap: 6px; }
.lg-caps::before { content: "⇪"; font-weight: 700; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.lg-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(246, 241, 251, .85); cursor: pointer; user-select: none; }
.lg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lg-slider { position: relative; width: 36px; height: 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .5); transition: background .15s, border-color .15s; flex: none; }
.lg-slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .85); transition: transform .15s; }
.lg-switch input:checked + .lg-slider { background: var(--iris); border-color: var(--iris); }
.lg-switch input:checked + .lg-slider::after { transform: translateX(16px); background: #fff; }
.lg-switch input:focus-visible + .lg-slider { outline: 2px solid var(--focus); outline-offset: 2px; }
.lg-submit {
  height: 42px; border-radius: 8px; margin-top: 6px; font-weight: 600; font-size: 14px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--iris), #c8173d 60%, var(--violet));
  box-shadow: 0 12px 30px -12px rgba(255, 45, 85, .8); transition: transform .1s, filter .15s;
}
.lg-submit:hover { filter: brightness(1.1); }
.lg-submit:active { transform: scale(.98); }
.lg-or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: rgba(246, 241, 251, .45); text-transform: uppercase; letter-spacing: .14em; margin: 4px 0; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.lg-or:has(+ .lg-alt.hidden) { display: none; }
.lg-alt {
  height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13.5px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: var(--lg-text);
}
.lg-alt:hover { background: rgba(255, 255, 255, .13); }
.lg-alt:disabled { opacity: .6; cursor: progress; }
.lg-msg { font-size: 12.5px; text-align: center; color: rgba(246, 241, 251, .8); }
.lg-msg.err { color: #ff9caa; }
.lg-link { align-self: center; font-size: 12.5px; color: rgba(246, 241, 251, .75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.lg-link:hover { color: #fff; }
.lg-link.as-btn { background: none; border: 0; padding: 4px; }
.lg-row .lg-link { align-self: auto; }
.lg-small { font-size: 12px; color: rgba(246, 241, 251, .7); text-align: center; }
.lg-recovery { font-size: 12.5px; line-height: 1.55; color: rgba(246, 241, 251, .85); background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.lg-recovery code { font-size: 11.5px; background: rgba(0, 0, 0, .4); padding: 4px 8px; border-radius: 5px; overflow-wrap: anywhere; }
.lg-error, .lg-alert { width: 100%; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; text-align: center; }
.lg-error { background: rgba(255, 59, 82, .16); border: 1px solid rgba(255, 59, 82, .45); color: #ffc1cb; }
.lg-alert.lockdown { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255, 176, 46, .14); border: 1px solid rgba(255, 176, 46, .5); color: #ffe0a6; }
.lg-alert svg { flex: none; }

/* painel: novidades e atualizações */
.lg-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); flex: none; background: rgba(0, 0, 0, .18); }
.lg-tab { flex: 1; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 500; color: rgba(246, 241, 251, .7); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.lg-tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lg-tab.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 -2px 0 var(--iris); }
.lg-ver { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 45, 85, .22); color: #ffc1cb; }
.lg-pane { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 18px; min-height: 470px; max-height: min(600px, calc(100vh - 230px)); overflow-y: auto; animation: lg-fade .25s ease both; }
.lg-pane.lg-login { align-items: center; padding: 26px 30px 22px; max-height: none; overflow: visible; }
@keyframes lg-fade { from { opacity: 0; transform: translateY(4px); } }
.lg-count { font-size: 10.5px; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--iris); color: #fff; font-weight: 700; line-height: 17px; }
.lg-empty { color: rgba(246, 241, 251, .55); font-size: 13px; text-align: center; padding: 30px 10px; }
.lg-item { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.lg-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lg-item b { font-size: 13.5px; font-weight: 600; }
.lg-item small { font-size: 11px; color: rgba(246, 241, 251, .55); white-space: nowrap; font-family: var(--font-mono); }
.lg-item p { margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: rgba(246, 241, 251, .78); }
.lg-tag { display: inline-block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; margin-right: 6px; vertical-align: 1px;
  background: rgba(127, 216, 255, .16); color: #b9ecff; }
.lg-tag.warn { background: rgba(255, 176, 46, .18); color: #ffe0a6; }
.lg-tag.new { background: rgba(53, 208, 127, .18); color: #b6f5d2; }
.lg-rel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lg-rel summary::-webkit-details-marker { display: none; }
.lg-rel summary::after { content: "›"; transform: rotate(90deg); color: rgba(246, 241, 251, .5); transition: transform .15s; font-size: 16px; }
.lg-rel:not([open]) summary::after { transform: none; }
.lg-rel ul { margin: 8px 0 0 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.45; color: rgba(246, 241, 251, .8); }
.lg-rel li::marker { color: var(--iris); }
.lg-rel .cur { font-size: 10px; padding: 1px 6px; border-radius: 5px; background: var(--iris); color: #fff; margin-left: 6px; letter-spacing: .04em; }

/* contas salvas (canto inferior esquerdo, como no Windows) */
.lg-users { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lg-users:empty { display: none; }
.lg-user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; color: var(--lg-text); font-size: 12.5px; text-align: left; background: rgba(255, 255, 255, .05); }
.lg-user:hover { background: rgba(255, 255, 255, .1); }
.lg-user.on { background: rgba(255, 255, 255, .14); }
.lg-user i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--iris), var(--violet)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.lg-user i.plus { background: rgba(255, 255, 255, .12); font-size: 18px; }

/* rodapé: segurança à esquerda, versão discreta à direita */
.lg-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 clamp(14px, 3vw, 36px) 16px; pointer-events: none; }
.lg-secure { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(246, 241, 251, .55); }
.lg-version {
  position: fixed; right: clamp(14px, 3vw, 30px); bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: rgba(246, 241, 251, .42); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); user-select: none;
}

@media (max-width: 980px) {
  .lg-stage { padding-bottom: 24px; }
  .lg-foot, .lg-version { position: static; }
  .lg-foot { justify-content: center; padding-bottom: 6px; }
  .lg-version { text-align: center; padding: 0 16px 16px; }
}
@media (max-width: 560px) {
  .lg-top { padding-top: 14px; }
  .lg-brand-txt small { display: none; }
  .lg-wordmark { width: 64px; }
  .lg-clock b { font-size: 34px; }
  .lg-clock small { font-size: 12px; }
  .lg-pane.lg-login { padding: 22px 18px 18px; }
  .lg-pane { min-height: 0; }
  .lg-tab { font-size: 12px; padding: 0 4px; }
  .lg-avatar { width: 88px; height: 88px; }
  .lg-foot { padding-bottom: 12px; }
  .lg-secure { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lg-wall { animation: none; } }
