/* Login */

.lg-stage {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.lg-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(124,92,255,0.08), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(102,217,170,0.04), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.lg-card {
  width: 480px;
  height: 640px;
  background: var(--bg-medium);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px 44px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  position: relative;
}

/* Brand */
.lg-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 36px;
}
.lg-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-primary-muted);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-primary);
}
.lg-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}

/* Heading */
.lg-head { margin-bottom: 28px; }
.lg-head h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--fg-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.lg-head p {
  font-size: 13.5px;
  color: var(--fg-secondary);
  margin: 0;
  line-height: 1.5;
  max-width: 360px;
  text-wrap: pretty;
}

/* Form */
.lg-form {
  display: flex; flex-direction: column;
  gap: 16px;
}
.lg-field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.lg-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
}
.lg-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.lg-forgot {
  font-size: 11.5px;
  color: var(--fg-tertiary);
  text-decoration: none;
}
.lg-forgot:hover { color: var(--accent-primary); text-decoration: underline; }

.lg-input-wrap {
  display: flex; align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--fg-tertiary);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.lg-input-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-muted);
}
.lg-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--fg-primary);
  letter-spacing: 0;
}
.lg-input-wrap input::placeholder { color: var(--fg-tertiary); }
.lg-eye {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-tertiary);
  transition: color 120ms ease;
}
.lg-eye:hover { color: var(--fg-primary); }

.lg-submit {
  margin-top: 8px;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

/* Separator */
.lg-sep {
  display: flex; align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--fg-tertiary);
}
.lg-sep::before, .lg-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--separator);
}
.lg-sep span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* OAuth */
.lg-oauth {
  display: flex; flex-direction: column;
  gap: 8px;
}
.lg-oauth-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-primary);
  transition: border-color 120ms ease, background 120ms ease;
}
.lg-oauth-btn:hover {
  border-color: var(--border-default);
  background: rgba(255,255,255,0.03);
}

/* Footer */
.lg-footer {
  margin: auto 0 0;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-secondary);
}
.lg-footer a {
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
}
.lg-footer a:hover { text-decoration: underline; }
