:root {
  color-scheme: light;
  --navy: #102544;
  --navy-deep: #0b1b33;
  --blue: #2463a6;
  --blue-hover: #194f8d;
  --ink: #18283d;
  --muted: #68788d;
  --line: #dce4ed;
  --surface: #ffffff;
  --page: #f3f6fa;
  --font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 75% 15%, rgba(36, 99, 166, .08), transparent 34rem),
    var(--page);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.topbar {
  min-height: 76px;
  padding: 0 clamp(20px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(220, 228, 237, .8);
}

.brand {
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.15px;
}

.top-link {
  color: #53657a;
  font-size: 14px;
  font-weight: 600;
}

.top-link span { margin-left: 5px; color: var(--blue); }
.top-link:hover { color: var(--blue); }

.page {
  width: min(1000px, calc(100% - 48px));
  min-height: 590px;
  margin: clamp(32px, 6vh, 68px) auto 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(220, 228, 237, .9);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(16, 37, 68, .12);
}

.intro-panel {
  position: relative;
  min-height: 590px;
  padding: clamp(38px, 5vw, 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-deep), #1b4777);
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: #dce9f7;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #82c6a3;
}

.intro-panel h2 {
  margin: 28px 0 16px;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.intro-panel p {
  max-width: 370px;
  margin: 0;
  color: #c4d2e2;
  font-size: 15px;
  line-height: 1.8;
}

.benefits {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e8eff7;
  font-size: 13px;
}

.benefit-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: #d9e8f8;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 14px;
}

.intro-note {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  color: #c4d2e2;
  font-size: 11px;
}

.decor {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
}

.decor-one { width: 340px; height: 340px; right: -210px; top: -125px; }
.decor-two { width: 470px; height: 470px; right: -270px; top: -190px; }

.form-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 5vw, 68px);
}

.form-wrap { width: 100%; max-width: 410px; }

.form-heading { margin-bottom: 34px; }

.small-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.form-heading h1 {
  margin: 11px 0 8px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 39px);
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-form { display: grid; gap: 22px; }
.field { min-width: 0; display: grid; gap: 9px; }

.field label,
.label-row label {
  color: #293b52;
  font-size: 13px;
  font-weight: 650;
}

.input-with-icon { position: relative; min-width: 0; }

.field input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}

.input-with-icon input { padding-left: 44px; }
.field input::placeholder { color: #9aa8b8; }

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 99, 166, .12);
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: #8492a5;
  font-size: 14px;
  pointer-events: none;
  transform: translateY(-50%);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.text-link { color: var(--blue); font-size: 12px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }

.remember-option {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #53657a;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.remember-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--blue);
}

.submit-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(100deg, var(--navy), #1c4d7e);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(16, 37, 68, .16);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .18s, transform .18s;
}

.submit-button:hover { filter: brightness(1.12); }
.submit-button:active { transform: translateY(1px); }
.submit-button:focus-visible { outline: 3px solid rgba(36, 99, 166, .3); outline-offset: 3px; }
.submit-button span { font-size: 20px; font-weight: 400; }
.submit-button:disabled { opacity: .7; cursor: wait; }

.form-feedback {
  margin: 12px 0 0;
  color: #53677e;
  font-size: 13px;
  line-height: 1.6;
}

.form-feedback.is-error { color: #b42318; }
.form-feedback.is-info { color: var(--blue); }
.form-feedback.is-success { color: #18794e; }

.signup-prompt {
  margin: 30px 0 0;
  color: #718096;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.strong { font-weight: 750; }

.footer {
  width: min(1000px, calc(100% - 48px));
  margin: auto auto 22px;
  color: #8997a8;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 800px) {
  .page { width: min(760px, calc(100% - 36px)); min-height: 540px; }
  .intro-panel { min-height: 540px; padding: 34px; }
  .form-panel { padding: 36px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 68px; padding: 0 20px; }
  .brand { font-size: 23px; }
  .top-link { font-size: 12px; }
  .page {
    width: calc(100% - 28px);
    min-height: 0;
    margin: 20px auto 22px;
    display: block;
    border-radius: 17px;
  }
  .intro-panel { display: none; }
  .form-panel { padding: clamp(26px, 8vw, 40px) clamp(20px, 7vw, 32px); }
  .form-wrap { max-width: 460px; }
  .form-heading { margin-bottom: 28px; }
  .form-heading h1 { font-size: 34px; }
  .login-form { gap: 20px; }
  .field input { height: 52px; font-size: 14px; }
  .submit-button { min-height: 53px; }
  .signup-prompt { margin-top: 24px; }
  .footer { width: calc(100% - 32px); }
}

@media (max-width: 360px) {
  .topbar { padding-right: 14px; padding-left: 14px; }
  .brand { font-size: 21px; }
  .top-link { font-size: 11px; }
  .page { width: calc(100% - 20px); }
  .form-panel { padding-right: 17px; padding-left: 17px; }
  .label-row { align-items: flex-start; }
  .text-link { font-size: 11px; }
}
