
.login-main {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1fr);
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 86px 24px 128px;
  gap: 60px;
}

.login-intro {
  padding-top: 28px;
  word-break: keep-all;
}

.login-intro__eyebrow {
  margin: 0 0 24px;
  color: #142862;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.login-intro h1 {
  margin: 0 0 36px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.16;
}

.login-intro__lead {
  margin: 0;
  color: #080808;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.38;
}

.login-intro__desc {
  margin: 34px 0 0;
  color: #142862;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.48;
}

.care-login-card {
  border: 3px solid #3d76db;
  border-radius: 18px;
  padding: 34px 36px 38px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(20, 45, 110, .1);
}

.care-login-card h2 {
  margin: 0 0 24px;
  color: #142862;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.care-login-form {
  display: grid;
  gap: 22px;
}

.login-terms {
  display: grid;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce5f4;
}

.login-term-item {
  display: grid;
  gap: 8px;
}

.login-term-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.login-check-line {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #080808;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  word-break: keep-all;
}

.login-check-line--all {
  font-size: 16px;
}

.login-check-line input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #9fb0c9;
  border-radius: 3px;
  background: #fff;
}

.login-check-line input[type="checkbox"]:checked {
  border-color: #3d76db;
  background-color: #3d76db;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.8 6.3 6 10.4 14.2 1.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 11px;
}

.login-term-preview {
  height: 148px;
  max-height: none;
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid #e6edf8;
  border-radius: 8px;
  color: #4d5b71;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  background: #fbfdff;
  word-break: keep-all;
}

.login-field-group {
  display: grid;
  gap: 10px;
}

.login-field-group label {
  color: #080808;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.login-field-group input,
.extra-field input,
.extra-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d5e2f5;
  border-radius: 8px;
  color: #142862;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.extra-field select {
  appearance: auto;
}

.extra-field input[type="date"] {
  color-scheme: light;
  appearance: auto;
}

.extra-field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: .72;
}

.login-field-group input:focus,
.extra-field input:focus,
.extra-field select:focus {
  border-color: #3d76db;
  box-shadow: 0 0 0 3px rgba(61, 118, 219, .14);
}

.login-auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 10px;
}

.login-auth-row button {
  border: 0;
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: #4c58c9;
}

.login-form-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: #4d5b71;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.login-form-message[data-type="error"] {
  color: #d12626;
}

.login-form-message[data-type="success"] {
  color: #2e72cc;
}

.login-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  background: #4c58c9;
  box-shadow: 0 14px 28px rgba(76, 88, 201, .24);
}

.login-modal-lock {
  overflow: hidden;
}

.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 38, .46);
}

.login-modal-overlay[hidden] {
  display: none;
}

.login-modal {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 38px 44px 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 16, 38, .24);
}

.login-modal-close {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid #9fb0c9;
  border-radius: 8px;
  color: #080808;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  background: #fff;
}

.login-modal h2 {
  margin: 0 54px 20px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

.login-modal-lead {
  margin: 0 0 34px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}

.login-modal-copy {
  display: grid;
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 28px;
  padding: 22px;
  gap: 18px;
  border: 1px solid #dce5f4;
  border-radius: 8px;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  background: #fbfdff;
  word-break: keep-all;
}

.login-modal-copy p {
  margin: 0;
}

.login-term-preview .term-layer,
.login-modal-copy .term-layer,
.extra-consent-copy .term-layer {
  display: grid;
  gap: 12px;
}

.login-term-preview .term-layer h4,
.login-modal-copy .term-layer h4,
.extra-consent-copy .term-layer h4 {
  margin: 8px 0 0;
  color: #142862;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.35;
}

.login-term-preview .term-layer p,
.login-term-preview .term-layer li,
.login-modal-copy .term-layer p,
.login-modal-copy .term-layer li,
.extra-consent-copy .term-layer p,
.extra-consent-copy .term-layer li {
  margin: 0;
}

.login-term-preview .term-layer ol,
.login-term-preview .term-layer ul,
.login-modal-copy .term-layer ol,
.login-modal-copy .term-layer ul,
.extra-consent-copy .term-layer ol,
.extra-consent-copy .term-layer ul {
  display: grid;
  margin: 0;
  padding-left: 20px;
  gap: 8px;
}

.login-term-preview .term-layer ul ul,
.login-term-preview .term-layer ol ul,
.login-modal-copy .term-layer ul ul,
.login-modal-copy .term-layer ol ul,
.extra-consent-copy .term-layer ul ul,
.extra-consent-copy .term-layer ol ul {
  margin-top: 8px;
}

.login-term-preview .term-layer a,
.login-modal-copy .term-layer a,
.extra-consent-copy .term-layer a {
  color: #2e72cc;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.login-term-preview.is-frame {
  height: 148px;
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.login-modal-copy.is-frame {
  height: 50vh;
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.extra-consent-copy.is-frame {
  height: 170px;
  padding: 0;
  overflow: hidden;
}

.login-term-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.login-modal-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 500px);
  min-height: 58px;
  margin: 0 auto;
  border: 1px solid #3d76db;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  background: #3d76db;
}

.extra-info-form {
  display: grid;
  width: min(100%, 480px);
  margin: 0 auto;
  gap: 20px;
}

.extra-field {
  display: grid;
  gap: 9px;
}

.extra-field label {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  word-break: keep-all;
}

.extra-consent-line {
  margin-top: 2px;
  font-size: 16px;
}

.extra-consent-copy {
  display: grid;
  max-height: 170px;
  overflow-y: auto;
  padding: 16px;
  gap: 6px;
  border: 1px solid #dce5f4;
  border-radius: 8px;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  background: #fbfdff;
  word-break: keep-all;
}

.extra-consent-copy strong,
.extra-consent-copy p {
  margin: 0;
}

@media (max-width: 900px) {
  .login-main {
    grid-template-columns: 1fr;
    padding: 62px 24px 96px;
    gap: 36px;
  }

  .login-intro {
    padding-top: 0;
    text-align: center;
  }

  .login-intro h1 {
    font-size: 38px;
  }

  .login-intro__lead {
    font-size: 21px;
  }

  .login-intro__desc {
    margin-top: 24px;
  }

  .care-login-card {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .login-main {
    padding: 48px 20px 78px;
    gap: 28px;
  }

  .login-intro__eyebrow {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .login-intro h1 {
    margin-bottom: 24px;
    font-size: 30px;
  }

  .login-intro__lead {
    font-size: 18px;
  }

  .login-intro__desc {
    font-size: 16px;
  }

  .care-login-card {
    padding: 28px 20px 30px;
    border-width: 2px;
    border-radius: 16px;
  }

  .care-login-card h2 {
    font-size: 22px;
  }

  .login-term-head {
    align-items: flex-start;
  }

  .login-term-preview,
  .login-term-preview.is-frame {
    height: 132px;
  }

  .login-auth-row {
    grid-template-columns: 1fr;
  }

  .login-auth-row button {
    min-height: 46px;
  }

  .login-submit-button {
    min-height: 58px;
    font-size: 20px;
  }

  .login-modal-overlay {
    align-items: flex-start;
    padding: 16px;
  }

  .login-modal {
    max-height: calc(100dvh - 32px);
    padding: 34px 20px 30px;
  }

  .login-modal-close {
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
  }

  .login-modal h2 {
    margin-right: 46px;
    margin-left: 46px;
    font-size: 26px;
  }

  .login-modal-lead {
    margin-bottom: 26px;
    font-size: 17px;
  }

  .login-modal-copy {
    padding: 16px;
    font-size: 14px;
  }

  .extra-info-form {
    gap: 17px;
  }

  .extra-field label {
    font-size: 17px;
  }
}
