:root {
  --navy: #001726;
  --deep: #000e18;
  --orange: #ff7600;
  --cyan: #1dd7d2;
  --paper: #f3f6f6;
  --ink: #061c2a;
  --muted: #6d7f89;
  --line: rgba(5, 38, 58, .13);
}

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

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1.06fr .94fr;
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 74px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 32%, rgba(29, 215, 210, .12), transparent 28%),
    linear-gradient(145deg, #00101c, #001e33 62%, #00111d);
  flex-direction: column;
}

.login-story::after {
  position: absolute;
  right: -240px;
  bottom: -250px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(29, 215, 210, .13);
  border-radius: 50%;
  content: "";
}

.story-grid {
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(77, 215, 217, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 215, 217, .07) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.login-brand img {
  width: 190px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 10px;
}

.login-brand span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.story-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  margin-block: auto;
  padding: 70px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow i { width: 34px; height: 1px; background: currentColor; }

.story-copy h1 {
  margin: 26px 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(61px, 6.4vw, 102px);
  line-height: .96;
  letter-spacing: -.065em;
}

.story-copy h1 em { color: var(--orange); font-style: normal; }

.story-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 17px;
  line-height: 1.7;
}

.story-points {
  display: grid;
  max-width: 650px;
  margin-top: 43px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.story-points span {
  display: flex;
  min-height: 80px;
  padding-right: 15px;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.story-points span:not(:last-child) { margin-right: 15px; border-right: 1px solid rgba(255, 255, 255, .1); }
.story-points svg { width: 21px; color: var(--cyan); }

.story-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-status > i {
  width: 9px;
  height: 9px;
  background: #2adc8c;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(42, 220, 140, .09);
}

.story-status span { display: grid; }
.story-status b { font-size: 10px; }
.story-status small { margin-top: 3px; color: rgba(255, 255, 255, .35); font-size: 9px; }

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 84px);
  align-content: center;
  justify-items: center;
}

.login-card {
  width: min(520px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 28px 80px rgba(0, 23, 38, .1);
}

.panel-index {
  color: #087e83;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.login-card h2 {
  margin: 16px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 31px;
  letter-spacing: -.045em;
}

.login-card header > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.demo-credentials {
  display: grid;
  margin: 29px 0;
  padding: 14px;
  align-items: center;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  border: 1px solid rgba(29, 215, 210, .2);
  background: #effafa;
  border-radius: 13px;
}

.demo-credentials > span {
  display: grid;
  width: 42px;
  height: 42px;
  color: #087f83;
  background: #fff;
  border-radius: 10px;
  place-items: center;
}

.demo-credentials svg { width: 18px; }
.demo-credentials div { display: grid; gap: 2px; }
.demo-credentials b { margin-bottom: 2px; font-size: 10px; }
.demo-credentials small { color: #607680; font-size: 9px; }

.demo-credentials button {
  padding: 9px 10px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
}

#loginForm { display: grid; gap: 17px; }

.login-field { display: grid; gap: 7px; }
.login-field > label { color: #687a84; font-size: 9px; font-weight: 800; }

.login-field > div {
  display: grid;
  min-height: 52px;
  padding: 0 13px;
  align-items: center;
  grid-template-columns: 23px 1fr auto;
  border: 1px solid #dce4e6;
  background: #f7f9f9;
  border-radius: 10px;
}

.login-field > div:focus-within { border-color: #0e999b; box-shadow: 0 0 0 3px rgba(29, 215, 210, .11); }
.login-field svg { width: 16px; color: #84939a; }
#loginForm input { min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 12px; }
#loginForm [data-toggle-password] { display: grid; width: 34px; height: 34px; background: transparent; place-items: center; }

.form-meta { display: flex; align-items: center; justify-content: space-between; color: #819098; font-size: 9px; }
.form-meta label { display: flex; align-items: center; gap: 7px; }
.form-meta input { width: 15px; height: 15px; accent-color: var(--orange); }

.login-submit {
  display: flex;
  min-height: 54px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  color: #07151e;
  background: var(--orange);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 15px 32px rgba(255, 118, 0, .2);
}

.login-submit svg { width: 17px; }
.login-submit:disabled { opacity: .7; cursor: wait; }

.login-status { display: none; margin: 0; padding: 10px; border-radius: 8px; font-size: 10px; line-height: 1.5; }
.login-status.show { display: block; color: #087358; background: #e8faf3; }
.login-status.error { display: block; color: #a5351b; background: #fff0ea; }

.login-card footer {
  display: flex;
  margin-top: 25px;
  padding-top: 20px;
  align-items: flex-start;
  gap: 9px;
  color: #8b989f;
  border-top: 1px solid #edf0f1;
  font-size: 8px;
  line-height: 1.5;
}

.login-card footer svg { width: 15px; flex: 0 0 auto; color: #0c8d73; }

.back-link {
  display: flex;
  margin-top: 22px;
  align-items: center;
  gap: 8px;
  color: #687a84;
  font-size: 10px;
  font-weight: 700;
}

.back-link svg { width: 15px; }

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 32px; }
  .story-copy { padding: 90px 0 70px; }
  .story-copy h1 { font-size: clamp(58px, 11vw, 90px); }
  .login-panel { min-height: auto; padding: 70px 24px; }
}

@media (max-width: 560px) {
  .login-story { padding: 22px 18px; }
  .login-brand img { width: 160px; }
  .login-brand span { display: none; }
  .story-copy { padding: 70px 0 48px; }
  .story-copy h1 { font-size: clamp(49px, 14.5vw, 68px); }
  .story-copy > p { font-size: 15px; }
  .story-points { grid-template-columns: 1fr; }
  .story-points span, .story-points span:not(:last-child) { min-height: 58px; margin: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .login-panel { padding: 45px 12px; }
  .login-card { padding: 25px 18px; border-radius: 18px; }
  .demo-credentials { grid-template-columns: 40px 1fr; }
  .demo-credentials button { grid-column: 1 / -1; min-height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
