/* Trang đăng nhập: nửa "mặt bàn" tối có quỹ đạo, nửa giấy kẻ ô chứa biểu mẫu. Điện thoại: xếp dọc. */
body.login-page { min-height: 100vh; }
.login { display: grid; grid-template-columns: 1fr; min-height: 100vh; }

.lg-art {
  position: relative; overflow: hidden; padding: 20px 22px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: var(--desk); color: var(--desk-ink);
}
.lg-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, rgb(255 106 19 / .28), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgb(127 162 255 / .22), transparent 70%),
    linear-gradient(rgb(127 162 255 / .08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(127 162 255 / .08) 1px, transparent 1px) 0 0 / 24px 24px;
}
.lg-art > * { position: relative; }
/* Hình nguyên tử động: nằm TRỌN trong khung (không bị cắt mép), electron chạy vô hạn trên ba quỹ đạo nghiêng. */
.lg-scene { display: none; }
.lg-scene .atom { display: block; width: 100%; height: auto; overflow: visible; }
.atom .orbit { stroke: #7FA2FF; stroke-opacity: .55; stroke-width: 1.5; }
.atom .halo { stroke: #7FA2FF; stroke-opacity: .22; stroke-width: 1; stroke-dasharray: 3 9; transform-box: fill-box; transform-origin: center; animation: atom-spin 80s linear infinite; }
.atom .halo--2 { stroke-opacity: .3; animation-duration: 56s; animation-direction: reverse; }
.atom .glow { transform-box: fill-box; transform-origin: center; animation: atom-pulse 3.4s ease-in-out infinite; }
.atom .nucleus { filter: drop-shadow(0 0 6px rgb(255 138 61 / .9)); }
.atom .spark { fill: #9DB6FF; opacity: .35; animation: atom-twinkle 4s ease-in-out infinite; }
.atom .spark--2 { animation-delay: -1.2s; } .atom .spark--3 { animation-delay: -2.1s; } .atom .spark--4 { animation-delay: -3s; }
@keyframes atom-spin { to { transform: rotate(360deg); } }
@keyframes atom-pulse { 0%, 100% { transform: scale(.82); opacity: .75; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes atom-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .atom .halo, .atom .glow, .atom .spark { animation: none; } }
.lg-art .lab { font-family: var(--font-mono); font-size: var(--fs-00); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--neon-orange); }
.lg-art h2 { margin: 8px 0 0; font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 2.3rem; line-height: 1; color: #fff; }
.lg-art .tagline { margin: 10px 0 0; max-width: 34ch; color: var(--desk-ink-2); }
.lg-art .ai-note { margin: 0; max-width: 440px; padding: 10px 12px; border: 1px solid var(--desk-line); border-left: 4px solid var(--neon-orange); border-radius: var(--r-2); background: rgb(255 255 255 / .06); color: var(--desk-ink-2); font-size: .9375rem; }
.lg-art .ai-note strong { color: #fff; }

.lg-form { display: flex; align-items: center; padding: 26px var(--gutter) 34px; }
.lg-form .inner { width: 100%; max-width: 400px; margin: 0 auto; }
.lg-form h1 { font-size: 2rem; font-stretch: 85%; font-weight: 850; line-height: 1.05; margin: 12px 0 8px; }
.lg-form .brand-name .ai { color: var(--signal-ink); }

@media (min-width: 900px) {
  .login { grid-template-columns: 1.05fr 1fr; }
  .lg-art { padding: 48px; min-height: 100vh; }
  .lg-art h2 { font-size: 4.6rem; }
  .lg-art { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lg-scene { position: relative; right: auto; top: auto; width: 100%; display: grid; place-items: center; min-height: 0; padding: 12px 0; }
  .lg-scene .atom { width: min(100%, 520px, 48vh); }
  .lg-toggle { display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; padding: 4px 12px; font: 600 var(--fs-00)/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--desk-ink-2); background: rgb(255 255 255 / .06); border: 1px solid var(--desk-line); border-radius: var(--r-2); cursor: pointer; }
  .lg-toggle:hover { background: rgb(255 255 255 / .14); color: #fff; }
  .lg-form { padding: 48px; }
}
