.auth-page {
  --auth-ink: #18363a;
  --auth-ink-soft: #52696a;
  --auth-green: #91c83e;
  --auth-green-dark: #527d2c;
  --auth-coral: #c56e55;
  --auth-paper: #f3f2eb;
  --auth-white: #fffefa;
  --auth-line: #dfe3da;
  align-items: stretch;
  background: var(--auth-paper);
  color: var(--auth-ink);
  display: block;
  font-family: "CircularStd", "Segoe UI", sans-serif;
  min-height: 100vh;
  padding: 24px;
}

.auth-page .main-wrapper {
  align-items: stretch;
  display: block;
  flex: none;
  height: auto;
  margin: 0;
  width: 100%;
}

.auth-layout {
  background: var(--auth-white);
  border: 1px solid rgba(24, 54, 58, 0.08);
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(34, 52, 44, 0.09);
  display: grid;
  grid-template-columns: minmax(340px, 0.96fr) minmax(460px, 1.04fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: calc(100vh - 48px);
  overflow: hidden;
}

.auth-brand-panel {
  background-color: #123f70;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #1c5a8f 0%, #123f70 100%);
  background-position: -1px -1px;
  background-size:
    44px 44px,
    44px 44px,
    100% 100%;
  color: #f7f6ec;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  overflow: hidden;
  padding: 54px 58px 34px;
  position: relative;
}

.auth-brand-panel::after {
  background: var(--auth-green);
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0;
  width: 92px;
}

.auth-brand-top,
.auth-brand-footer,
.auth-form-brand {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.auth-brand-top {
  color: rgba(247, 246, 236, 0.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.auth-brand-top i,
.auth-form-brand i {
  color: var(--auth-green);
  font-style: normal;
  margin: 0 4px;
}

.auth-brand-monogram {
  align-items: center;
  border: 1px solid rgba(247, 246, 236, 0.48);
  border-radius: 50%;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  margin-right: 12px;
  width: 38px;
}

.auth-brand-top > span:last-child {
  margin-right: auto;
}

.auth-brand-copy {
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-eyebrow {
  color: var(--auth-green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin: 0 0 16px;
}

.auth-brand-panel .auth-eyebrow {
  color: #c5e99a;
}

.auth-brand-copy h1 {
  color: #fffefa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

.auth-brand-copy h1 em {
  color: #c5e99a;
  display: block;
  font-style: italic;
}

.auth-brand-description {
  color: rgba(247, 246, 236, 0.73);
  font-size: 15px;
  margin: 24px 0 0;
}

.auth-brand-art {
  bottom: 68px;
  height: 196px;
  position: absolute;
  right: 70px;
  pointer-events: none;
  width: 236px;
}

.auth-brand-art::before,
.auth-brand-art::after,
.auth-brand-art span {
  border: 1px solid rgba(145, 200, 62, 0.48);
  content: "";
  position: absolute;
}

.auth-brand-art::before {
  height: 134px;
  right: 0;
  top: 18px;
  transform: rotate(12deg);
  width: 134px;
}

.auth-brand-art::after {
  background: rgba(145, 200, 62, 0.16);
  border-color: transparent;
  height: 82px;
  right: 54px;
  top: 64px;
  transform: rotate(-13deg);
  width: 190px;
}

.auth-brand-art span:nth-child(1) {
  background: var(--auth-green);
  border: 0;
  height: 9px;
  right: 29px;
  top: 12px;
  transform: rotate(12deg);
  width: 70px;
}

.auth-brand-art span:nth-child(2) {
  background: var(--auth-green);
  border: 0;
  bottom: 6px;
  height: 9px;
  left: 5px;
  transform: rotate(-13deg);
  width: 55px;
}

.auth-brand-art span:nth-child(3) {
  background: var(--auth-green);
  border: 0;
  height: 9px;
  left: 38px;
  top: 38px;
  transform: rotate(-13deg);
  width: 35px;
}

.auth-brand-art b {
  color: rgba(247, 246, 236, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 400;
  left: 84px;
  line-height: 1;
  position: absolute;
  top: 47px;
}

.auth-brand-footer {
  border-top: 1px solid rgba(247, 246, 236, 0.2);
  color: rgba(247, 246, 236, 0.68);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

.auth-form-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 48px 64px 34px;
}

.auth-form-inner {
  max-width: 430px;
  width: 100%;
}

.auth-form-brand {
  margin-bottom: 68px;
}

.auth-form-brand a {
  display: inline-flex;
}

.auth-form-brand img {
  height: auto;
  max-width: 152px;
  width: 100%;
}

.auth-form-brand > span {
  color: #758381;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.auth-state {
  animation: auth-enter 0.3s ease-out both;
}

.auth-state > .auth-eyebrow {
  margin-bottom: 12px;
}

.auth-title {
  color: var(--auth-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

.auth-title > span {
  color: var(--auth-coral);
}

.auth-subtitle {
  color: var(--auth-ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 32px;
}

.auth-form .auth-field {
  margin-bottom: 23px;
}

.auth-form .auth-field label {
  color: var(--auth-ink);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}

.auth-label-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.auth-page .auth-form .form-control {
  background: #fff;
  border: 1px solid #cfd7ce;
  border-radius: 5px;
  box-shadow: none;
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 14px;
  height: 52px;
  padding: 0 15px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-page .auth-form .form-control::placeholder {
  color: #9aa6a0;
  opacity: 1;
}

.auth-page .auth-form .form-control:focus {
  border-color: var(--auth-green-dark);
  box-shadow: 0 0 0 3px rgba(144, 184, 75, 0.18);
  outline: 0;
}

.auth-page .auth-form .form-control[readonly] {
  background: #f1f3ed;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .form-control {
  padding-right: 52px !important;
}

.auth-password-toggle {
  background: transparent;
  border: 0;
  color: #637572;
  cursor: pointer;
  height: 44px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
}

.auth-password-toggle:hover {
  color: var(--auth-ink);
}

.auth-page button:focus-visible,
.auth-page a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--auth-green-dark);
  outline-offset: 3px;
}

.auth-text-button {
  background: transparent;
  border: 0;
  color: var(--auth-green-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 0;
  text-decoration: none;
}

.auth-text-button:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

.auth-field-hint {
  color: var(--auth-ink-soft);
  font-size: 12px;
  margin: -2px 0 10px;
}

.auth-timer-row {
  align-items: center;
  color: var(--auth-ink-soft);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-top: 9px;
}

.auth-timer-row #timer {
  color: var(--auth-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.auth-timer-row .auth-resend {
  font-size: 11px;
}

.auth-form .auth-submit-wrap {
  margin: 30px 0 0;
}

.auth-page .auth-form .auth-submit {
  align-items: center;
  background: linear-gradient(180deg, #397bd1 0%, #3657bd 100%);
  border: 1px solid #3657bd;
  border-radius: 5px;
  box-shadow: 0 5px 14px rgba(54, 87, 189, 0.18);
  color: #fffefa;
  display: flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  text-align: left;
  transition:
    box-shadow 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease;
  width: 100%;
}

.auth-page .auth-form .auth-submit:hover,
.auth-page .auth-form .auth-submit:focus {
  background: linear-gradient(180deg, #3473c8 0%, #304eae 100%);
  border-color: #304eae;
  color: #fffefa;
  filter: brightness(0.98);
  box-shadow: 0 7px 17px rgba(54, 87, 189, 0.24);
}

.auth-page .auth-form .auth-submit:active {
  transform: translateY(1px);
}

.auth-page .auth-form .auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-form-footer {
  align-items: center;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-ink-soft);
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
}

.auth-password-guidance {
  background: #f2f5eb;
  border-left: 3px solid var(--auth-green);
  color: #52645c;
  font-size: 12px;
  line-height: 1.55;
  margin: -4px 0 0;
  padding: 10px 12px;
}

.auth-page .auth-form label.error,
.auth-page .auth-form .error {
  color: #a84f3d !important;
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 7px 0 0;
}

.auth-copyright {
  color: #7b8984;
  font-size: 11px;
  margin-top: 54px;
}

.auth-copyright a {
  color: var(--auth-ink);
  font-weight: 700;
}

@keyframes auth-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .auth-page {
    padding: 16px;
  }

  .auth-layout {
    grid-template-columns: minmax(280px, 0.8fr) minmax(390px, 1.2fr);
    min-height: calc(100vh - 32px);
  }

  .auth-brand-panel {
    padding: 42px 34px 28px;
  }

  .auth-brand-copy h1 {
    font-size: 48px;
  }

  .auth-brand-art {
    right: 24px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .auth-form-panel {
    padding: 38px 34px 28px;
  }

  .auth-form-brand {
    margin-bottom: 54px;
  }
}

@media (max-width: 760px) {
  .auth-page {
    padding: 0;
  }

  .auth-layout {
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    margin: 0;
    min-height: 100vh;
  }

  .auth-brand-panel {
    min-height: 0;
    padding: 24px 26px 21px;
  }

  .auth-brand-panel::after {
    height: 5px;
    width: 56px;
  }

  .auth-brand-monogram {
    height: 32px;
    width: 32px;
  }

  .auth-brand-copy {
    margin: 28px 0 5px;
  }

  .auth-brand-copy h1 {
    font-size: 34px;
    max-width: 330px;
  }

  .auth-brand-copy .auth-eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .auth-brand-description {
    font-size: 13px;
    margin-top: 10px;
  }

  .auth-brand-art {
    bottom: 0;
    height: 100px;
    right: 16px;
    transform: scale(0.48);
    transform-origin: bottom right;
  }

  .auth-brand-footer {
    font-size: 10px;
    padding-top: 12px;
  }

  .auth-form-panel {
    align-items: flex-start;
    padding: 30px 26px 24px;
  }

  .auth-form-brand {
    margin-bottom: 38px;
  }

  .auth-form-brand img {
    max-width: 132px;
  }

  .auth-title {
    font-size: 32px;
  }

  .auth-subtitle {
    margin-bottom: 25px;
  }

  .auth-copyright {
    margin-top: 38px;
  }
}

@media (max-width: 360px) {
  .auth-brand-panel,
  .auth-form-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-brand-top {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-state {
    animation: none;
  }

  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    transition-duration: 0.01ms !important;
  }
}
