/* login-v2.css — design preview for /auth/login only (soft-skill rebuild).
   Deliberately page-scoped (lv2- prefix) rather than touching app.css's
   shared .card/.btn classes — every other page keeps its current look
   until this is reviewed and rolled out further. Reuses JBT's existing
   brand CSS variables from app.css (already loaded via partials/head). */

:root {
  --lv2-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lv2-bg: #f3f4f6;
  --lv2-shell-bg: rgba(15, 23, 32, 0.035);
  --lv2-shell-ring: rgba(15, 23, 32, 0.07);
  --lv2-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

.lv2-stage {
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(30, 130, 190, 0.07), transparent 70%),
    var(--lv2-bg);
  font-family: var(--lv2-font);
}

.lv2-shell {
  width: 100%;
  max-width: 440px;
  background: var(--lv2-shell-bg);
  border: 1px solid var(--lv2-shell-ring);
  border-radius: 2rem;
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  animation: lv2-rise 220ms var(--lv2-ease) forwards;
}

@keyframes lv2-rise {
  to { opacity: 1; transform: translateY(0); }
}

.lv2-core {
  background: #ffffff;
  border-radius: calc(2rem - 0.5rem);
  padding: 2.5rem 2rem 2rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(16, 24, 32, 0.04),
    0 24px 48px -24px rgba(16, 24, 32, 0.18);
  text-align: center;
}

.lv2-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(30, 130, 190, 0.08);
  color: var(--jbt-blue-deep);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.lv2-logo { display: block; margin: 0 auto 1rem; width: 120px; max-width: 60%; height: auto; }

.lv2-title {
  font-family: var(--lv2-font);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--jbt-ink);
  margin: 0 0 1.75rem;
}

.lv2-label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6472;
  margin-bottom: 0.4rem;
}

.lv2-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background: #fbfbfc;
  font-family: var(--lv2-font);
  font-size: 0.95rem;
  color: var(--jbt-ink);
  margin-bottom: 1.1rem;
  transition: border-color 200ms var(--lv2-ease), box-shadow 200ms var(--lv2-ease), background 200ms var(--lv2-ease);
}
.lv2-input:focus {
  outline: none;
  border-color: var(--jbt-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 130, 190, 0.12);
}

.lv2-hint { font-size: 0.85rem; color: var(--jbt-muted); margin: -0.3rem 0 0.85rem; text-align: left; }
.lv2-error { font-size: 0.85rem; color: var(--jbt-danger); background: rgba(192, 57, 43, 0.07); border-radius: 0.85rem; padding: 0.7rem 0.9rem; margin: 0 0 1.1rem; text-align: left; }
.lv2-sent { font-size: 0.95rem; color: #3c4450; line-height: 1.5; }

.lv2-form { margin: 0 0 0.75rem; }

.lv2-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  font-family: var(--lv2-font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms var(--lv2-ease), box-shadow 200ms var(--lv2-ease), background 200ms var(--lv2-ease), opacity 200ms var(--lv2-ease);
}
.lv2-btn:active { transform: scale(0.98); }
.lv2-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Flat blue-deep fill, not the earlier light-blue/blue gradient — that
   gradient's lighter stop put white button text at 2.94:1, under WCAG
   AA's 4.5:1 floor. Blue-deep clears ~8.8:1. */
.lv2-btn-primary {
  background: var(--jbt-blue-deep);
  color: #fff;
  padding: 0.85rem 1.4rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 10px 24px -10px rgba(15, 78, 122, 0.6);
}
.lv2-btn-primary:hover {
  background: var(--jbt-blue);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 12px 24px -10px rgba(30, 130, 190, 0.5);
  transform: translateY(-1px);
}

.lv2-btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms var(--lv2-ease);
}
.lv2-btn-primary:hover .lv2-btn-icon { transform: translate(2px, -2px) scale(1.06); }

.lv2-btn-ghost {
  background: transparent;
  color: #5b6472;
  padding: 0.7rem 1rem;
  margin-top: 0.1rem;
}
.lv2-btn-ghost:hover { background: rgba(16, 24, 32, 0.04); color: var(--jbt-ink); }

@media (max-width: 480px) {
  .lv2-core { padding: 2rem 1.25rem 1.5rem; }
}
