/* Tela de entrada do Orion Demon: exploração espacial ao fundo (canvas) e o cartão de entrada deslocado para a
   esquerda, com cantos cortados. Sem cantos arredondados e sem gradiente. */
:root {
  --lg-glass: rgba(10, 6, 18, .78); --lg-stroke: rgba(255, 255, 255, .1); --lg-text: #f6f1fb;
  --lg-dim: rgba(246, 241, 251, .62); --lg-cut: 22px; --lg-accent: var(--iris, #ff2d55); --lg-cyan: #67e8f9;
}
.hidden { display: none !important; }

body.lg { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; color: var(--lg-text); background: #05030b; }
.lg-wall { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; background: #05030b; }

/* relógio no canto */
.lg-top { position: fixed; top: 0; right: 0; z-index: 2; padding: 22px clamp(16px, 4vw, 48px) 0; pointer-events: none; }
.lg-clock { display: flex; flex-direction: column; align-items: flex-end; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.lg-clock b { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 60px); font-weight: 500; letter-spacing: .02em; line-height: 1; }
.lg-clock small { font-size: 13px; font-weight: 500; color: var(--lg-dim); margin-top: 6px; letter-spacing: .04em; }
.lg-clock small::first-letter { text-transform: uppercase; }

/* palco: o cartão fica à esquerda, a cena ocupa o resto */
.lg-stage {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-start;
  min-height: 100vh; min-height: 100dvh; padding: 32px 16px 56px clamp(16px, 8vw, 140px);
}
.lg-card {
  position: relative; width: 430px; max-width: 100%; display: flex; flex-direction: column;
  background: var(--lg-glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  clip-path: polygon(var(--lg-cut) 0, 100% 0, 100% calc(100% - var(--lg-cut)), calc(100% - var(--lg-cut)) 100%, 0 100%, 0 var(--lg-cut));
  box-shadow: inset 0 0 0 1px var(--lg-stroke);
  animation: lg-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.lg-card::before { content: ""; position: absolute; left: 0; top: var(--lg-cut); bottom: 30%; width: 3px; background: var(--lg-accent); }
@keyframes lg-in { from { opacity: 0; transform: translateX(-18px); } }

/* abas: texto com traço embaixo */
.lg-tabs { display: flex; gap: 18px; padding: 18px 28px 0; border-bottom: 1px solid var(--lg-stroke); flex: none; }
.lg-tab { height: 40px; padding: 0; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lg-dim); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lg-tab:hover { color: #fff; }
.lg-tab.on { color: #fff; border-bottom-color: var(--lg-accent); }
.lg-ver { font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; background: rgba(255, 45, 85, .2); color: #ffc1cb; letter-spacing: 0; }
.lg-count { font-size: 10px; min-width: 16px; padding: 0 4px; background: var(--lg-accent); color: #fff; font-weight: 700; line-height: 16px; text-align: center;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }

.lg-pane { display: flex; flex-direction: column; gap: 10px; padding: 16px 28px 22px; min-height: 440px; max-height: min(600px, calc(100vh - 140px));
  overflow-y: auto; animation: lg-fade .25s ease both; }
.lg-pane.lg-login { align-items: stretch; padding: 26px 28px 26px; max-height: none; overflow: visible; }
@keyframes lg-fade { from { opacity: 0; transform: translateY(4px); } }

/* identidade: hexágono à esquerda, nome e dica ao lado */
.lg-avatar {
  width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; float: left; margin: 0 16px 14px 0;
  background: rgba(255, 255, 255, .07);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.lg-avatar img { width: 78%; height: 78%; object-fit: contain; }
.lg-avatar span { font-size: 28px; font-weight: 600; color: #fff; }
.lg-avatar.pic img { width: 100%; height: 100%; object-fit: cover; }
.lg-avatar.letter { background: var(--violet, #8b5cf6); }
.lg-avatar.mfa { color: #fff; background: rgba(255, 45, 85, .45); }
.lg-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: .02em; text-align: left; line-height: 1.1; padding-top: 6px; }
.lg-hint { margin: 4px 0 20px; font-size: 13px; color: var(--lg-dim); text-align: left; }
.lg-form { width: 100%; display: flex; flex-direction: column; gap: 10px; clear: both; }

.lg-field {
  position: relative; display: flex; align-items: center; height: 46px; background: rgba(255, 255, 255, .06);
  border-bottom: 2px solid rgba(255, 255, 255, .25); transition: border-color .15s, background .15s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.lg-field:focus-within { background: rgba(0, 0, 0, .4); border-bottom-color: var(--lg-cyan); }
.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, .45); }
.lg-ico { display: grid; place-items: center; width: 40px; color: var(--lg-dim); flex: none; margin-right: -8px; }
.lg-eye, .lg-go { display: grid; place-items: center; width: 40px; height: 100%; color: rgba(246, 241, 251, .75); flex: none; }
.lg-eye:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lg-eye.on { color: var(--lg-cyan); }
.lg-go { background: rgba(255, 255, 255, .08); color: #fff; }
.lg-go:hover { background: var(--lg-accent); }
.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: 34px; height: 18px; border: 1px solid rgba(255, 255, 255, .45); transition: background .15s, border-color .15s; flex: none; }
.lg-slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 10px; height: 10px; background: rgba(255, 255, 255, .85); transition: transform .15s; }
.lg-switch input:checked + .lg-slider { background: var(--lg-accent); border-color: var(--lg-accent); }
.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: 46px; margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--lg-accent); transition: background .15s, transform .1s;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.lg-submit:hover { background: #ff4d6f; }
.lg-submit:active { transform: scale(.99); }
.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: 42px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13.5px;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: var(--lg-text); }
.lg-alt:hover { background: rgba(255, 255, 255, .08); }
.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: flex-start; font-size: 12.5px; color: var(--lg-dim); 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 0; }
.lg-row .lg-link { align-self: auto; }
.lg-small { font-size: 12px; color: var(--lg-dim); }
.lg-recovery { font-size: 12.5px; line-height: 1.55; color: rgba(246, 241, 251, .85); background: rgba(0, 0, 0, .35); box-shadow: inset 2px 0 0 var(--lg-cyan); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.lg-recovery code { font-size: 11.5px; background: rgba(0, 0, 0, .45); padding: 4px 8px; overflow-wrap: anywhere; }
.lg-error, .lg-alert { width: 100%; font-size: 13px; padding: 10px 12px; margin-bottom: 12px; clear: both; }
.lg-error { background: rgba(255, 59, 82, .16); box-shadow: inset 3px 0 0 #ff3b52; color: #ffc1cb; }
.lg-alert.lockdown { display: flex; align-items: center; gap: 10px; background: rgba(255, 176, 46, .14); box-shadow: inset 3px 0 0 #ffb02e; color: #ffe0a6; }
.lg-alert svg { flex: none; }

/* novidades e atualizações */
.lg-empty { color: rgba(246, 241, 251, .55); font-size: 13px; text-align: center; padding: 30px 10px; }
.lg-item { padding: 12px 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 2px 0 0 rgba(103, 232, 249, .5); }
.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; 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(--lg-accent); }
.lg-rel .cur { font-size: 10px; padding: 1px 6px; background: var(--lg-accent); color: #fff; margin-left: 6px; letter-spacing: .04em; }

/* contas salvas neste dispositivo */
.lg-users { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lg-stroke); }
.lg-users:empty { display: none; }
.lg-user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; color: var(--lg-text); font-size: 12.5px; text-align: left; background: rgba(255, 255, 255, .05);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.lg-user:hover { background: rgba(255, 255, 255, .1); }
.lg-user.on { background: rgba(255, 255, 255, .15); }
.lg-user i { width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; font-weight: 600; color: #fff; background: var(--violet, #8b5cf6);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.lg-user i.pic img { width: 100%; height: 100%; object-fit: cover; }
.lg-user i.plus { background: rgba(255, 255, 255, .14); font-size: 18px; }

.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: 760px) {
  .lg-top { position: static; display: flex; justify-content: center; padding: 18px 16px 0; }
  .lg-clock { align-items: center; }
  .lg-stage { justify-content: center; min-height: 0; padding: 18px 16px 24px; }
  .lg-version { position: static; text-align: center; padding: 0 16px 16px; }
}
@media (max-width: 480px) {
  .lg-clock b { font-size: 32px; }
  .lg-clock small { font-size: 12px; }
  .lg-tabs { gap: 12px; padding: 14px 18px 0; }
  .lg-tab { font-size: 11.5px; letter-spacing: .05em; }
  .lg-pane, .lg-pane.lg-login { padding-left: 18px; padding-right: 18px; min-height: 0; }
  .lg-name { font-size: 22px; }
}
