:root {
  color-scheme: light;
  --dark: #17344a;
  --dark-soft: #24495d;
  --ink: #17344a;
  --muted: #6f8093;
  --line: #dfe7ec;
  --lime: #35e58f;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #f3f9f6; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 0.92fr) minmax(420px, 1.08fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5vw, 70px);
  border-right: 1px solid #d6e9df;
  background: linear-gradient(145deg, #ffffff 0%, #eafff3 100%);
  color: var(--ink);
}

.login-story::before,
.login-story::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-story::before {
  top: -18vw;
  right: -14vw;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(53, 229, 143, 0.22);
  box-shadow: 0 0 0 80px rgba(53, 229, 143, 0.055), 0 0 0 160px rgba(53, 229, 143, 0.03);
}

.login-story::after {
  right: 8%;
  bottom: 15%;
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 45px -74px 0 -2px rgba(82, 221, 214, 0.55), -90px 24px 0 -2px rgba(82, 221, 214, 0.35);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-brand-portrait {
  display: block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 1px solid rgba(82, 221, 214, 0.78);
  border-radius: 15px;
  background: #edf2f6;
  box-shadow: 0 0 0 4px rgba(82, 221, 214, 0.08);
}

.login-brand-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.login-brand strong,
.login-brand small { display: block; }
.login-brand strong { font-size: 20px; letter-spacing: -0.04em; }
.login-brand small { margin-top: 3px; color: #789187; font-size: 9px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }

.login-story-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  padding: 11vh 0 7vh;
}

.login-kicker {
  margin: 0 0 12px;
  color: #249d9c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-story .login-kicker { color: #138156; }

.login-story h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.login-story-copy > p:not(.login-kicker) {
  max-width: 530px;
  margin: 24px 0 0;
  color: #526b78;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

blockquote {
  max-width: 530px;
  padding: 0 0 0 20px;
  margin: 38px 0 0;
  border-left: 2px solid var(--lime);
}

blockquote p { margin: 0; color: #28475a; font-family: Georgia, serif; font-size: 15px; line-height: 1.65; }
blockquote cite { display: block; margin-top: 9px; color: #789187; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }

.login-company-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-company-list span {
  padding: 7px 10px;
  border: 1px solid #cce7da;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.74);
  color: #526b78;
  font-size: 9px;
  font-weight: 760;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 42px;
  place-items: center;
  background: #f8fbfa;
}

.login-form-wrap { width: min(100%, 430px); }

.login-form-wrap h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.login-intro { margin: 14px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.55; }

#loginForm { display: grid; gap: 18px; margin-top: 30px; }

.login-field { display: grid; gap: 8px; }
.login-field > span:first-child { color: #53687b; font-size: 10px; font-weight: 800; letter-spacing: 0.055em; text-transform: uppercase; }

.login-field select,
.login-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.login-field select:focus,
.login-field input:focus { border-color: #48bcb7; box-shadow: 0 0 0 4px rgba(82, 221, 214, 0.14); }

.password-control { position: relative; display: block; }
.password-control input { padding-right: 88px; }
.password-control button { position: absolute; top: 50%; right: 8px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: #5c7184; font-size: 10px; font-weight: 760; cursor: pointer; transform: translateY(-50%); }
.password-control button:hover { background: #eef4f5; color: var(--ink); }

.login-submit {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  color: #10382b;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.login-submit:hover { background: #58f2a4; transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: 0.65; transform: none; }
.login-submit span { color: #10382b; font-size: 19px; }

.login-error { padding: 11px 13px; margin: -4px 0 0; border: 1px solid #edc7c0; border-radius: 10px; background: #fff3f0; color: #a04435; font-size: 12px; }
.login-security { margin: 20px 0 0; color: #82909d; font-size: 10px; line-height: 1.5; }
.login-security span { margin-right: 5px; color: #2ba99f; font-size: 7px; }

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-story { min-height: auto; padding: 26px 24px 34px; }
  .login-story-copy { padding: 58px 0 45px; }
  .login-story h1 { font-size: clamp(38px, 12vw, 58px); }
  .login-story-copy > p:not(.login-kicker) { margin-top: 18px; }
  blockquote { display: none; }
  .login-panel { min-height: auto; padding: 48px 24px 64px; }
}

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