:root {
  --navy: #243a32;
  --navy-light: #344d43;
  --blue: #a74832;
  --blue-dark: #873725;
  --yellow: #d8a928;
  --yellow-soft: #f5ecd2;
  --ink: #292c27;
  --muted: #686b63;
  --line: #d9d2c5;
  --page: #eeeae1;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
}

.login-layout {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 44%) 1fr;
}

.intro-panel {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 7vh, 86px) clamp(44px, 7vw, 108px) 34px;
  background: var(--navy);
  color: var(--white);
}

.intro-panel::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  pointer-events: none;
}

.intro-copy {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin-top: 92px;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(45px, 4.5vw, 62px);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -1.4px;
}

.intro-copy h1 span {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
}

.yellow-mark {
  width: 88px;
  height: 4px;
  margin: 30px 0 22px;
  border-radius: 3px;
  background: var(--yellow);
}

.intro-copy p {
  margin: 0;
  color: #e9e4d8;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.hero-illustration {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  width: min(620px, 90%);
  max-height: 420px;
  object-fit: contain;
  object-position: center bottom;
  margin: 0;
  transform: translateX(-50%);
  filter: grayscale(1) sepia(0.24) contrast(0.96);
  opacity: 0.9;
}

.form-panel {
  height: 100vh;
  min-height: 100vh;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 46px clamp(28px, 6vw, 86px);
}

.login-card {
  width: min(620px, 100%);
  min-width: 0;
  padding: 40px 42px 24px;
  border: 1px solid #d5cdbf;
  border-top: 5px solid var(--yellow);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(49, 58, 48, 0.08);
}

.process-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0 0 7px;
  border-bottom: 2px solid var(--yellow);
  border-radius: 0;
  background: transparent;
  color: var(--navy-light);
  font-size: 12px;
  font-weight: 600;
}

.login-heading {
  margin-bottom: 20px;
  text-align: left;
}

.login-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.login-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.choice-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 0 4px 18px;
  border-bottom: 1px solid var(--line);
}

.choice-info-item {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.choice-info-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 3px;
  color: var(--blue);
  font-size: 17px;
}

.choice-info .choice-info-icon {
  display: grid;
  margin-top: 0;
}

.choice-info-item.specialty .choice-info-icon {
  border-color: #b17c0d;
  color: #8e6207;
}

.choice-info strong,
.choice-info span {
  display: block;
}

.choice-info strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.choice-info span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.error-message {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #efb5bb;
  border-radius: 7px;
  background: #fff5f6;
  color: #b32938;
  font-size: 13px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: #ece6da;
  color: #5d6258;
  font-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

input[type='text'],
input[type='date'] {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 66px;
  border: 1px solid #c9c1b4;
  border-radius: 3px;
  outline: none;
  background: #fffefb;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type='text']:focus,
input[type='date']:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(167, 72, 50, 0.13);
}

.btn-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 160ms ease;
}

.btn-submit:hover {
  background: var(--blue-dark);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.privacy-note i {
  color: var(--navy-light);
  font-size: 17px;
}

.login-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.login-footer a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .login-layout {
    grid-template-columns: 38% 1fr;
  }

  .intro-panel {
    padding: 48px 36px 28px;
  }

  .intro-copy h1 {
    font-size: 48px;
  }

  .intro-copy p {
    font-size: 17px;
  }

  .form-panel {
    padding: 30px;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .login-layout {
    height: auto;
    display: block;
  }

  .intro-panel {
    height: auto;
    min-height: auto;
    padding: 24px;
  }

  .intro-copy {
    margin-top: 12px;
  }

  .intro-copy h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .intro-copy p,
  .yellow-mark,
  .hero-illustration {
    display: none;
  }

  .form-panel {
    height: auto;
    min-height: auto;
    padding: 24px;
  }

  .login-card {
    width: 100%;
    padding: 28px 24px 24px;
    border-radius: 3px;
  }
}

@media (max-width: 520px) {
  .choice-info {
    grid-template-columns: 1fr;
  }

  .choice-info-item {
    min-height: 86px;
  }

  .login-heading h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .login-heading p {
    font-size: 14px;
  }
}
