:root {
  --ink: #0f1a16;
  --muted: #5a6b63;
  --sea: #1a6b58;
  --sea-light: #2d8f76;
  --sea-deep: #0f4a3c;
  --paper: #f4efe4;
  --white: #fffcf8;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.login-body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* ── Brand panel ── */
.login-brand {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(45,143,118,.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(212,98,42,.22), transparent 50%),
    linear-gradient(155deg, #0d3d32 0%, #145244 45%, #1a6b58 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  pointer-events: none;
}

.login-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  width: fit-content;
}
.login-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  font-family: var(--font);
  font-size: .85rem; font-weight: 800;
  backdrop-filter: blur(8px);
}

.login-brand-copy {
  position: relative;
  margin-top: clamp(3rem, 12vh, 6rem);
  max-width: 28rem;
}
.login-eyebrow {
  margin: 0 0 .9rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}
.login-brand-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
}
.login-brand-copy h1 em {
  font-style: italic;
  color: #b8e6d5;
}
.login-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}

.login-points {
  position: relative;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}
.login-points li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
}
.login-points li::before {
  content: "";
  width: 8px; height: 8px;
  margin-top: .4rem;
  border-radius: 50%;
  background: #7dcbad;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(125,203,173,.2);
}

.login-funnel {
  position: relative;
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  max-width: 240px;
  animation: loginFloat 5.5s ease-in-out infinite;
}
.login-funnel span {
  display: block;
  width: var(--w);
  height: 18px;
  border-radius: 5px;
  background: var(--c);
  opacity: .92;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* ── Form panel ── */
.login-main {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26,107,88,.08), transparent 50%),
    linear-gradient(180deg, #f7f3ea, var(--paper));
}

.login-panel {
  width: min(420px, 100%);
  animation: loginRise .6s ease both;
}

.login-back {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
}
.login-back:hover { color: var(--sea-deep); }

.login-panel h2 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: -.02em;
}
.login-sub {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-field {
  display: grid;
  gap: .4rem;
}
.login-field span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.login-field input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid rgba(15,26,22,.12);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.login-field input::placeholder { color: #a8b5ae; }
.login-field input:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(26,107,88,.14);
}

.login-error {
  padding: .7rem .9rem;
  border-radius: 10px;
  background: #fdeaea;
  color: #b91c1c;
  font-size: .85rem;
  font-weight: 600;
}

.login-submit {
  margin-top: .35rem;
  width: 100%;
  padding: .95rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--sea-light), var(--sea-deep));
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,107,88,.28);
  transition: transform .2s, box-shadow .2s;
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,107,88,.36);
}

.login-demo {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255,252,248,.9);
  border: 1px solid rgba(15,26,22,.08);
}
.login-demo-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sea-deep);
  margin-bottom: .75rem;
}
.login-demo-grid {
  display: grid;
  gap: .65rem;
}
.login-demo-grid div {
  display: grid;
  gap: .15rem;
  font-size: .82rem;
  color: var(--muted);
}
.login-demo-grid span {
  font-weight: 700;
  color: var(--ink);
  font-size: .78rem;
}
.login-demo-grid code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  background: rgba(26,107,88,.08);
  color: var(--sea-deep);
  padding: .1rem .35rem;
  border-radius: 5px;
}

@keyframes loginRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loginFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand {
    min-height: auto;
    padding-bottom: 2rem;
  }
  .login-brand-copy { margin-top: 2rem; }
  .login-funnel { display: none; }
  .login-points { margin-bottom: .5rem; }
}
