/* Standalone sign-in page. Dark surface, soft green ambient glow, one card. */
:root {
  --bg: #000; --card: #0b0b0b; --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #e6e9ef; --muted: rgba(230, 233, 239, 0.55); --faint: rgba(230, 233, 239, 0.32);
  --green: #30d158; --green-2: #5ee87f; --red: #ff5c5c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg);
  min-height: 100vh; display: grid; grid-template-rows: 1fr; opacity: 0; transition: opacity .25s;
  background-image:
    radial-gradient(60% 50% at 20% 0%, rgba(48, 209, 88, 0.14), transparent 70%),
    radial-gradient(50% 50% at 95% 100%, rgba(48, 209, 88, 0.10), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
body.ready { opacity: 1; }

.lg-home { display: inline-flex; align-items: center; gap: 9px; padding: 22px 28px; justify-self: start; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.lg-home img { width: 22px; height: 22px; }

.lg-wrap { display: grid; place-items: center; padding: 20px 16px 60px; }
.lg-card {
  width: 100%; max-width: 380px; padding: 34px 32px 28px; display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(48, 209, 88, 0.04), 0 0 60px rgba(48, 209, 88, 0.06);
}
.lg-logo { width: 40px; height: 40px; align-self: center; margin-bottom: 4px; }
.lg-title { margin: 0; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.lg-sub { margin: -4px 0 10px; text-align: center; font-size: 13px; color: var(--muted); }

.lg-google, .lg-submit, .lg-field input {
  height: 40px; border-radius: 9px; font: 500 13px 'Inter', system-ui, sans-serif; width: 100%;
}
.lg-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--ink);
}
.lg-google:hover { background: rgba(255, 255, 255, 0.08); }

.lg-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 11px; color: var(--faint); }
.lg-or::before, .lg-or::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.lg-or::after { background: linear-gradient(90deg, var(--line-strong), transparent); }

.lg-field { display: block; }
.lg-field input {
  padding: 0 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lg-field input::placeholder { color: var(--faint); }
.lg-field input:focus { border-color: rgba(48, 209, 88, 0.6); box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.12); }

.lg-forgot { align-self: flex-start; margin-top: -2px; font-size: 12px; color: var(--green); text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }
.lg-forgot[hidden] { display: none; }

.lg-msg { min-height: 0; font-size: 12px; line-height: 1.45; color: var(--red); }
.lg-msg.ok { color: var(--green); }
.lg-msg:empty { display: none; }

.lg-submit {
  cursor: pointer; border: 0; font-weight: 600; color: #031007;
  background: linear-gradient(180deg, var(--green-2), var(--green)); box-shadow: 0 6px 20px rgba(48, 209, 88, 0.25);
}
.lg-submit:hover { filter: brightness(1.06); }
.lg-submit[disabled] { opacity: .6; cursor: progress; }

.lg-switch { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.lg-switch a { color: var(--green); text-decoration: none; font-weight: 500; }
.lg-switch a:hover { text-decoration: underline; }

@media (max-width: 440px) { .lg-card { padding: 28px 20px 22px; } }
