* {
  box-sizing: border-box;
}
html,
body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
}
html {
  color-scheme: light;
  background: #07101f;
}
body {
  min-height: 100dvh;
  color: #111827;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
button,
input {
  font: inherit;
}

.login-page {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(360px, 1.05fr) minmax(430px, 0.95fr);
  background: #f3f6fb;
}
.login-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgb(6 182 212 / 0.28), transparent 24%),
    radial-gradient(circle at 72% 78%, rgb(37 99 235 / 0.24), transparent 34%),
    linear-gradient(145deg, #07101f, #0d1b31 58%, #0d2b38);
  color: #fff;
}
.login-story::before,
.login-story::after {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 50%;
  content: '';
}
.login-story::before {
  right: -220px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  box-shadow:
    0 0 0 65px rgb(255 255 255 / 0.018),
    0 0 0 130px rgb(255 255 255 / 0.012);
}
.login-story::after {
  top: 22%;
  right: 10%;
  width: 170px;
  height: 170px;
  box-shadow: inset 0 0 80px rgb(6 182 212 / 0.06);
}
.story-brand,
.story-copy,
.story-agents,
.story-footer {
  position: relative;
  z-index: 1;
}
.story-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #3b82f6, #2563eb 55%, #06b6d4);
  box-shadow: 0 12px 30px rgb(37 99 235 / 0.3);
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.story-brand > div {
  display: grid;
  gap: 1px;
}
.story-brand strong {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
}
.story-brand small {
  color: #8090a7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.story-copy {
  max-width: 680px;
  margin: clamp(60px, 10vh, 130px) 0 50px;
}
.story-copy > span {
  color: #67e8f9;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.story-copy h2 {
  margin: 16px 0 18px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(42px, 5.2vw, 78px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}
.story-copy p {
  max-width: 560px;
  margin: 0;
  color: #9dacc1;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.65;
}
.story-agents {
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.story-agents article {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 13px;
  background: rgb(255 255 255 / 0.045);
  backdrop-filter: blur(12px);
}
.story-agents i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  font-style: normal;
  font-weight: 800;
}
.agent-clara {
  background: rgb(236 72 153 / 0.16);
  color: #f472b6;
}
.agent-felipe {
  background: rgb(56 189 248 / 0.16);
  color: #38bdf8;
}
.story-agents article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.story-agents strong {
  font-size: 10px;
}
.story-agents small {
  overflow: hidden;
  color: #7d8da5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-agents article > span {
  color: #4ade80;
  font-size: 8px;
}
.story-footer {
  margin-top: 28px;
  color: #64748b;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.login-card {
  align-self: center;
  display: grid;
  width: min(480px, calc(100% - 48px));
  gap: 13px;
  justify-self: center;
  padding: 46px;
  border: 1px solid #dce4ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 70px rgb(16 24 40 / 0.1);
}
.login-mobile-brand {
  display: none;
}
.eyebrow {
  color: #2563eb;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.login-card h1 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  letter-spacing: -0.045em;
}
.login-card > p:not(.login-feedback) {
  margin: -4px 0 12px;
  color: #667085;
  font-size: 13px;
}
#loginForm {
  display: grid;
  gap: 9px;
}
#loginForm label:not(.remember) {
  margin-top: 5px;
  color: #344054;
  font-size: 10px;
  font-weight: 700;
}
#loginForm input:not([type='checkbox']) {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d6dfeb;
  border-radius: 11px;
  outline: 0;
  background: #f9fbfd;
  color: #111827;
}
#loginForm input:not([type='checkbox']):focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1);
}
#loginForm input::placeholder {
  color: #98a2b3;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  color: #667085;
  font-size: 10px;
}
.remember input {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
}
.primary-btn {
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(37 99 235 / 0.22);
  transition: 0.18s ease;
}
.primary-btn:hover {
  background: #1d4ed8;
  translate: 0 -1px;
}
.primary-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
.login-feedback {
  min-height: 18px;
  margin: 3px 0 0;
  color: #98a2b3;
  font-size: 10px;
  text-align: center;
}
.login-feedback.error {
  color: #dc2626;
}
.login-feedback.success {
  color: #16a34a;
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    background: linear-gradient(145deg, #07101f, #10233f);
  }
  .login-story {
    display: none;
  }
  .login-card {
    width: min(440px, calc(100% - 28px));
    padding: 34px;
  }
  .login-mobile-brand {
    display: block;
    margin-bottom: 24px;
    color: #2563eb;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 420px) {
  .login-card {
    padding: 26px 20px;
    border-radius: 19px;
  }
  .login-card h1 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
  }
}
