/* EIS Login — split workspace sign-in */
:root {
  --ink: #142033;
  --ink-soft: #5b6678;
  --navy: #0c1f3a;
  --navy-mid: #163256;
  --navy-deep: #081628;
  --paper: #ffffff;
  --line: #d9e0ea;
  --mist: #f4f7fb;
  --gold: #c9a24a;
  --gold-soft: #e4c878;
  --danger: #b0453a;
  --danger-soft: #fdeceb;
  --radius-shell: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 28px 80px rgba(8, 22, 40, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: auto;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% 0%, #dce7f5 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 10%, #e8e0d0 0%, transparent 50%),
    linear-gradient(160deg, #eef2f7 0%, #e7ecf3 45%, #dde5ef 100%);
}

.login-shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(10px, 1.8vh, 20px) clamp(12px, 2vw, 20px);
  box-sizing: border-box;
  align-items: stretch;
  animation: shell-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.login-panel--brand {
  background:
    radial-gradient(ellipse 80% 70% at 70% 20%, rgba(36, 74, 122, 0.55) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy-mid) 0%, var(--navy) 48%, var(--navy-deep) 100%);
  color: #f4f7fb;
  border-radius: var(--radius-shell) 0 0 var(--radius-shell);
  padding: clamp(18px, 2.8vh, 32px) clamp(22px, 3vw, 36px) clamp(14px, 2vh, 24px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.brand-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.18) 0%, transparent 68%);
  animation: glow-drift 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

.brand-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 3.5vh, 36px);
  animation: rise 0.7s ease both;
  animation-delay: 0.08s;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.brand-mark.brand-mark--company {
  width: auto;
  max-width: min(420px, 88vw);
  height: 64px;
  background: transparent;
  padding: 0;
  border-radius: 8px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.72);
  margin-top: 3px;
}

.brand-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.75s ease both;
  animation-delay: 0.16s;
}

.brand-headline {
  margin: 0 0 clamp(6px, 1.2vh, 12px);
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3.2vh, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  max-width: 14ch;
}

.brand-lede {
  margin: 0 0 clamp(14px, 3vh, 28px);
  font-size: clamp(0.88rem, 1.7vh, 1rem);
  line-height: 1.45;
  color: rgba(244, 247, 251, 0.78);
  max-width: 34ch;
}

.brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 2vh, 16px);
}

.brand-features li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0c1f3a;
  background:
    linear-gradient(145deg, #f0d78a 0%, #c9a24a 55%, #b08935 100%);
  border: 1px solid rgba(255, 236, 180, 0.45);
  box-shadow:
    0 6px 14px rgba(8, 22, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.feature-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.feature-icon--field {
  background:
    linear-gradient(145deg, #e8d08a 0%, #d4b45a 45%, #c9a24a 100%);
}

.brand-features strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.brand-features li > div > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(244, 247, 251, 0.7);
}

.brand-foot {
  position: relative;
  z-index: 1;
  margin: clamp(12px, 2.5vh, 28px) 0 0;
  font-size: 0.78rem;
  color: rgba(244, 247, 251, 0.62);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: rise 0.8s ease both;
  animation-delay: 0.28s;
}

.brand-foot-marks {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.login-panel--form {
  background: var(--paper);
  border-radius: 0 var(--radius-shell) var(--radius-shell) 0;
  box-shadow: var(--shadow);
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.form-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: clamp(16px, 2.8vh, 32px) clamp(18px, 2.5vw, 32px) clamp(12px, 2vh, 22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  animation: rise 0.7s ease both;
  animation-delay: 0.12s;
}

.form-eyebrow {
  margin: 0 0 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-mid);
}

.form-title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3vh, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.form-hint {
  margin: 0 0 clamp(10px, 2vh, 16px);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #8a94a6;
  display: inline-flex;
  pointer-events: none;
  z-index: 1;
}

.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px 10px 40px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input--password {
  padding-right: 44px;
}

.input:focus {
  border-color: #7f93b3;
  box-shadow: 0 0 0 3px rgba(22, 50, 86, 0.12);
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8a94a6;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--navy);
  background: var(--mist);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.auto-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}

.auto-login input {
  accent-color: var(--navy);
}

.link-forgot {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #2f5f9e;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  min-height: 0;
}

.link-forgot:hover {
  text-decoration: underline;
  background: transparent;
  transform: none;
}

.btn-primary,
.btn-secondary {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 11px;
  cursor: pointer;
  min-height: clamp(40px, 5.2vh, 46px);
  width: 100%;
  padding: 10px 16px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy-deep);
  box-shadow: 0 10px 22px rgba(12, 31, 58, 0.22);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.help-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 10px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.help-divider::before,
.help-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--mist);
  border-color: #c7d0dc;
}

.demo-box {
  margin-top: 10px;
  background: linear-gradient(180deg, #f7fafc, #eef3f8);
  border: 1px solid #d5dee8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.demo-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 6px;
}

.demo-box b {
  color: var(--ink);
  font-weight: 700;
}

.error-box {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #f0c4bd;
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-footer {
  margin-top: clamp(10px, 2vh, 20px);
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.form-footer-links {
  font-weight: 600;
}

@keyframes shell-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes glow-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 18px) scale(1.06);
  }
}

@media (max-height: 760px) {
  .brand-features li > div > span {
    display: none;
  }

  .brand-foot {
    display: none;
  }

  .help-divider,
  .btn-secondary {
    display: none;
  }

  .form-footer {
    display: none;
  }
}

@media (max-height: 640px) {
  .brand-lede {
    display: none;
  }

  .brand-features {
    display: none;
  }

  .form-hint {
    display: none;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px;
  }

  .login-panel--brand {
    border-radius: var(--radius-shell) var(--radius-shell) 0 0;
    min-height: 0;
    padding: 22px 20px 18px;
    box-shadow: none;
  }

  .brand-headline {
    max-width: none;
  }

  .brand-copy {
    justify-content: flex-start;
  }

  .login-panel--form {
    border-radius: 0 0 var(--radius-shell) var(--radius-shell);
  }

  .form-inner {
    justify-content: flex-start;
  }

  .help-divider,
  .btn-secondary,
  .form-footer,
  .brand-foot,
  .brand-lede,
  .brand-features {
    display: revert;
  }

  .brand-features {
    display: grid;
  }

  .form-footer {
    display: flex;
  }

  .help-divider {
    display: flex;
  }

  .btn-secondary {
    display: block;
  }
}

@media (max-width: 480px) {
  .brand-features li > div > span {
    display: none;
  }

  .form-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell,
  .brand-top,
  .brand-copy,
  .brand-foot,
  .form-inner,
  .brand-glow {
    animation: none;
  }
}
