/* ==========================================================================
   login — split shell: an --ink brand panel (desktop only) paired with
   the form panel. Tokens only, nothing here invents a new color; the
   ink panel is the same surface the sidebar uses, so signing in already
   looks like the product you're about to land in.
   ========================================================================== */
.lg-page {
  min-height: 100vh;
  display: flex;
}

/* -------------------------------------------------------------- visual */
.lg-visual {
  flex: 1 1 46%;
  max-width: 620px;
  min-width: 380px;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
}

.lg-mark {
  position: relative;
  width: 116px;
  height: 116px;
  margin: auto 0;
  border-radius: 28px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lg-mark-dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: lg-pulse 2.6s ease-in-out infinite;
}

@keyframes lg-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;  }
  50%      { transform: scale(1.35); opacity: .5; }
}

.lg-eyebrow {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-text-3);
  margin-bottom: 10px;
}

.lg-headline {
  font-family: var(--font);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  margin-bottom: 10px;
  max-width: 380px;
}

.lg-subtext {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-text-2);
  max-width: 340px;
}

.lg-visual-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-text-3);
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
}
.lg-visual-foot svg { flex-shrink: 0; opacity: .8; }

/* ---------------------------------------------------------------- form */
.lg-form {
  flex: 1 1 54%;
  background-color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.lg-form-inner {
  width: 100%;
  max-width: 372px;
  animation: lg-rise .5s cubic-bezier(.16,1,.3,1);
}

@keyframes lg-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lg-mobile-brand {
  display: none;
  justify-content: center;
  margin-bottom: 30px;
}

.lg-title { font-family: var(--font); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 6px; }
.lg-lede  { color: var(--text-2); font-size: 13.5px; margin-bottom: 28px; }

.lg-field { margin-bottom: 16px; }

.lg-label {
  display: block;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-2);
  margin-bottom: 6px;
}

.lg-input-wrap { position: relative; }

.lg-input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color var(--t), box-shadow var(--t);
}
.lg-input::placeholder { color: #A6AFAE; }
.lg-input:hover { border-color: #c7cfce; }
.lg-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lg-input--password { padding-right: 42px; }

.lg-eye-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.lg-eye-toggle:hover { background: var(--paper); color: var(--text); }
.lg-eye-toggle .icon-off { display: none; }
.lg-eye-toggle.is-active .icon-on  { display: none; }
.lg-eye-toggle.is-active .icon-off { display: block; }

.lg-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  transition: max-height var(--t), opacity var(--t), padding var(--t), margin var(--t);
}
.lg-alert svg { flex-shrink: 0; margin-top: 1px; }
.lg-alert.is-visible {
  max-height: 80px;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.lg-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
}
.lg-submit:active { transform: scale(.985); }

.lg-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lg-spin .7s linear infinite;
}
.lg-submit.is-loading .lg-spinner { display: inline-block; }
.lg-submit.is-loading .lg-submit-label { opacity: .85; }

@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 22px;
}

@media (max-width: 860px) {
  .lg-visual { display: none; }
  .lg-form { padding: 40px 20px; }
  .lg-mobile-brand { display: flex; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .lg-visual { padding: 40px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-mark-dot, .lg-form-inner, .lg-spinner { animation: none; }
}
