.login-page {
  --login-red: #df343b;
  --login-ink: #202b35;
  --login-muted: #68727c;
  --login-border: #e3e6e8;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #f5f4f2;
  color: var(--login-ink);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

.login-page [hidden] {
  display: none !important;
}

.login-page button,
.login-page input {
  font: inherit;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 40px;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
}

.login-brand img {
  display: block;
  object-fit: contain;
}

.login-brand-accent {
  color: var(--login-red);
}

.login-header-caption {
  color: var(--login-muted);
  font-size: 12px;
}

.login-shell {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  overflow: hidden;
  min-height: 656px;
  border: 1px solid #e9e7e4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px -24px rgb(32 43 53 / 18%);
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px 46px 36px;
  background: #202c36;
  background-image: radial-gradient(ellipse at 95% 70%, #32434c 0%, transparent 60%);
  color: #fff;
}

.login-intro::before {
  position: absolute;
  top: -175px;
  right: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-intro-content {
  position: relative;
  z-index: 1;
}

.login-eyebrow,
.login-form-eyebrow {
  margin: 0 0 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
}

.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9d2d9;
}

.login-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6469;
}

.login-intro h1 {
  max-width: 440px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(32px, 3.2vw, 43px);
  font-weight: 600;
  letter-spacing: -1.6px;
  line-height: 1.22;
}

.login-intro h1 span {
  color: #ff777b;
}

.login-intro-description {
  max-width: 340px;
  margin: 20px 0 0;
  color: #bdc8d0;
  font-size: 13px;
  line-height: 1.8;
}

.login-illustration {
  position: relative;
  width: min(calc(100% + 30px), 420px);
  margin: 10px -15px 0;
}

.login-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.login-route-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  background: #34424c;
  color: #eef1f3;
  font-size: 10px;
  box-shadow: 0 8px 16px rgb(0 0 0 / 10%);
}

.login-route-label i {
  color: #ff9295;
  font-size: 13px;
}

.login-route-origin {
  top: 70%;
  left: 3%;
}

.login-route-destination {
  top: 6%;
  right: 3%;
}

.login-intro-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.login-intro-footer-icon {
  display: grid;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 10px;
  color: #d4dce1;
  font-size: 17px;
}

.login-intro-footer p {
  margin: 0;
  color: #bdc8d0;
  font-size: 11px;
  line-height: 1.9;
}

.login-intro-footer strong {
  color: #fff;
  font-weight: 500;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px;
}

.login-form-content {
  width: 100%;
  max-width: 360px;
}

.login-welcome-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid #f7dfe1;
  border-radius: 13px;
  background: #fff3f3;
  color: var(--login-red);
  font-size: 23px;
}

.login-form-eyebrow {
  margin-bottom: 9px;
  color: var(--login-muted);
  letter-spacing: 1.8px;
}

.login-form-panel h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.35;
}

.login-form-description {
  margin: 10px 0 30px;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.7;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 15px 0 44px;
  border: 1px solid var(--login-border);
  border-radius: 9px;
  outline: none;
  background: #fbfcfc;
  color: var(--login-ink);
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.login-input-wrap input::placeholder {
  color: var(--login-muted);
  opacity: 1;
}

.login-input-wrap input:hover {
  border-color: #b9c1c7;
}

.login-input-wrap input:focus {
  border-color: var(--login-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(223 52 59 / 10%);
}

.login-input-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: #737e87;
  font-size: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--login-red);
}

#password {
  padding-right: 52px;
}

.login-password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #737e87;
  font-size: 17px;
  cursor: pointer;
}

.login-password-toggle:hover {
  background: #f2f3f4;
  color: var(--login-ink);
}

.login-password-toggle:focus-visible,
.login-submit:focus-visible,
.login-footer a:focus-visible {
  outline: 3px solid var(--login-red);
  outline-offset: 3px;
}

.login-caps-warning {
  margin: 8px 0 0;
  color: #886019;
  font-size: 11px;
  line-height: 1.6;
}

.login-caps-warning i {
  margin-right: 3px;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #f4d3d6;
  border-radius: 9px;
  background: #fff4f4;
  color: #a62c34;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.login-error > i {
  flex-shrink: 0;
  font-size: 16px;
}

.login-error strong {
  font-weight: 600;
}

.login-error p {
  margin: 3px 0 0;
}

.login-recaptcha {
  align-self: flex-start;
  max-width: 100%;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  margin-top: 4px;
  padding: 13px 18px;
  border: 1px solid var(--login-red);
  border-radius: 9px;
  background: var(--login-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 5px 12px rgb(223 52 59 / 15%);
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
}

.login-submit:hover {
  border-color: #c52930;
  background: #c52930;
  box-shadow: 0 6px 16px rgb(223 52 59 / 23%);
}

.login-submit > i {
  font-size: 17px;
}

.login-submit:disabled {
  opacity: .75;
  cursor: wait;
}

.login-submit-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgb(255 255 255 / 35%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .7s linear infinite;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #edf0f1;
  color: var(--login-muted);
}

.login-help > i {
  font-size: 21px;
}

.login-help p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
}

.login-help strong {
  color: #4e5a64;
  font-weight: 600;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: var(--login-muted);
  font-size: 10px;
  line-height: 1.8;
}

.login-footer a {
  border-radius: 2px;
  color: #4e5a64;
  text-decoration: none;
}

.login-footer a:hover {
  color: var(--login-red);
  text-decoration: underline;
}

.login-sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1050px) {
  .login-container {
    padding: 28px;
  }

  .login-intro {
    padding: 40px 32px 32px;
  }

  .login-form-panel {
    padding: 40px 32px;
  }

  .login-form-panel h2 {
    font-size: 25px;
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .login-container {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .login-header {
    margin-bottom: 22px;
  }

  .login-shell {
    min-height: 600px;
  }

  .login-intro {
    padding-top: 36px;
    padding-bottom: 28px;
  }

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

  .login-illustration {
    max-width: 400px;
  }

  .login-form-panel {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .login-welcome-icon {
    display: none;
  }

  .login-form-description {
    margin: 8px 0 24px;
  }

  .login-form {
    gap: 18px;
  }

  .login-help {
    margin-top: 24px;
    padding-top: 20px;
  }

  .login-footer {
    margin-top: 18px;
  }
}

@media (max-width: 860px) {
  .login-container {
    max-width: 540px;
    padding: 28px 24px;
  }

  .login-header {
    justify-content: center;
    margin-bottom: 24px;
  }

  .login-header-caption {
    display: none;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .login-intro {
    padding: 26px 32px;
  }

  .login-eyebrow {
    margin-bottom: 12px;
    font-size: 9px;
  }

  .login-intro h1 {
    font-size: 25px;
    letter-spacing: -.6px;
    line-height: 1.35;
  }

  .login-desktop-break {
    display: none;
  }

  .login-intro-description,
  .login-illustration,
  .login-intro-footer,
  .login-welcome-icon {
    display: none;
  }

  .login-form-panel {
    padding: 32px;
  }

  .login-footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .login-container {
    padding: 24px 16px;
  }

  .login-intro {
    padding: 24px;
  }

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

  .login-form-panel {
    padding: 28px 24px;
  }

  .login-form-panel h2 {
    font-size: 24px;
  }

  .login-input-wrap input {
    font-size: 16px;
  }

  .login-recaptcha {
    height: 70px;
  }

  .login-recaptcha .g-recaptcha {
    transform: scale(.9);
    transform-origin: top left;
  }
}

@media (max-width: 359px) {
  .login-form-panel {
    padding: 26px 20px;
  }

  .login-intro h1,
  .login-form-panel h2 {
    font-size: 22px;
  }

  .login-recaptcha {
    height: 62px;
  }

  .login-recaptcha .g-recaptcha {
    transform: scale(.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *,
  .login-page *::before,
  .login-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
