@font-face {
  font-family: "Manrope Variable";
  src: url("./fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0f2747;
  --orange: #ff6b3d;
  --warm: #fafbfc;
  --slate: #64748b;
  --ink: #172640;
  --muted: #637187;
  --white: #fff;
  font-family: "Manrope Variable", Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--warm);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.login-brand {
  position: absolute;
  top: 34px;
  left: 48px;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-weight: 500;
}

.brand-logo {
  display: block;
  width: 86px;
  height: 42px;
  object-fit: contain;
}

.brand-logo-medium {
  width: 105px;
  height: 50px;
}

.brand-divider {
  height: 22px;
  border-left: 1px solid #cbd5e1;
}

.eyebrow {
  color: #56677d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.login-story {
  padding: 168px 11% 72px;
  background: #f7f9fb;
}

.login-story h1 {
  max-width: 570px;
  margin: 20px 0 18px;
  color: var(--navy);
  font-size: clamp(44px, 4.6vw, 70px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -3px;
}

.story-description {
  max-width: 470px;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.65;
}

.login-story small {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 120px;
  color: #596a7f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.login-story small::after {
  content: "";
  flex: 0 0 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(22px, 4vw, 48px);
  background: #eaf0f6;
}

.login-card {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  padding: 38px;
  border: 1px solid #dfe6ed;
  border-radius: 24px;
  background: #fffffff2;
  box-shadow: 0 24px 70px #0e224817;
}

.login-card .eyebrow { margin: 8px 0 0; }

.login-card h2 {
  margin: 0 0 -8px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.1px;
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.login-actions {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.primary {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  box-shadow: 0 5px 18px #0f274714;
}

.primary:hover,
.primary:active {
  border-color: #173657;
  background: #173657;
}

.primary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.login-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.dialog {
  width: min(470px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 26px;
  overflow: auto;
  border: 1px solid #dde4eb;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 80px #0e22482e;
  color: var(--ink);
}

.dialog::backdrop {
  background: #0e22485c;
  backdrop-filter: blur(3px);
}

.dialog h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.4px;
}

.dialog p {
  margin: 12px 0 22px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    background: #f4f7fa;
  }

  .login-story {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .login-brand {
    position: static;
    padding: 22px 25px 0;
  }

  .login-panel {
    align-items: flex-start;
    padding: 24px 22px 80px;
    background: transparent;
  }

  .login-card {
    max-width: 390px;
    padding: 29px 24px;
  }

  .login-card .brand-logo-medium { display: none; }
  .dialog { padding: 21px; }
}
