body.auth-page {
  --login-accent: #16875f;
  --login-accent-hover: #0f6f4d;
  --login-ink: #202124;
  --login-muted: #6e7178;
  --login-line: #dfe1e5;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background-color: #fbfdfc !important;
  color: var(--login-ink);
  isolation: isolate;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(244, 252, 248, 0.94);
  opacity: 0;
  pointer-events: none;
}

.login-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.login-backdrop::after {
  content: "";
  position: absolute;
  inset: -18px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

.login-backdrop__light {
  position: absolute;
  display: block;
  z-index: 0;
  opacity: 0.12;
  background: #2bc482;
  filter: blur(86px);
  clip-path: polygon(8% 18%, 72% 0, 100% 38%, 88% 92%, 30% 100%, 0 64%);
  pointer-events: none;
  will-change: transform, opacity;
}

.login-backdrop__light--one {
  top: -25%;
  left: -12%;
  width: 50vw;
  height: 53vh;
  background: #18b978;
  animation: login-light-one 10.5s ease-in-out -2s infinite alternate;
}

.login-backdrop__light--two {
  top: -28%;
  right: -11%;
  width: 46vw;
  height: 56vh;
  background: #08734b;
  animation: login-light-two 14s ease-in-out -8s infinite alternate;
}

.login-backdrop__light--three {
  bottom: -31%;
  left: 4%;
  width: 46vw;
  height: 57vh;
  background: #2acb79;
  animation: login-light-three 12.5s ease-in-out -5s infinite alternate;
}

.login-backdrop__light--four {
  right: -14%;
  bottom: -24%;
  width: 48vw;
  height: 52vh;
  background: #075f42;
  animation: login-light-four 16s ease-in-out -11s infinite alternate;
}

@keyframes login-light-one {
  0% { opacity: 0.08; transform: translate3d(-7%, -8%, 0) rotate(-8deg) scale(0.86); }
  46% { opacity: 0.42; transform: translate3d(9%, 8%, 0) rotate(4deg) scale(1.12); }
  100% { opacity: 0.15; transform: translate3d(20%, -1%, 0) rotate(10deg) scale(0.96); }
}

@keyframes login-light-two {
  0% { opacity: 0.34; transform: translate3d(8%, -4%, 0) rotate(7deg) scale(1.08); }
  54% { opacity: 0.07; transform: translate3d(-12%, 15%, 0) rotate(-7deg) scale(0.9); }
  100% { opacity: 0.39; transform: translate3d(-3%, 4%, 0) rotate(2deg) scale(1.16); }
}

@keyframes login-light-three {
  0% { opacity: 0.08; transform: translate3d(-5%, 14%, 0) rotate(5deg) scale(0.9); }
  42% { opacity: 0.36; transform: translate3d(13%, -9%, 0) rotate(-6deg) scale(1.14); }
  100% { opacity: 0.12; transform: translate3d(25%, 2%, 0) rotate(8deg) scale(0.98); }
}

@keyframes login-light-four {
  0% { opacity: 0.36; transform: translate3d(8%, 9%, 0) rotate(-6deg) scale(1.12); }
  58% { opacity: 0.07; transform: translate3d(-16%, -10%, 0) rotate(8deg) scale(0.88); }
  100% { opacity: 0.3; transform: translate3d(-4%, 3%, 0) rotate(-2deg) scale(1.05); }
}

.login-backdrop__brand {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 5vw, 82px);
  bottom: clamp(28px, 6vh, 72px);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #14523f;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}

.login-backdrop__brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
}

.login-backdrop__brand small {
  display: block;
  margin-top: 3px;
  color: #668077;
  font-size: 12px;
}

body.auth-page .auth-shell {
  width: min(438px, 100%);
  margin-left: 0;
}

body.auth-page .auth-card {
  position: relative;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 8px;
  background: #ffffff !important;
  box-shadow: 26px 30px 60px rgba(22, 87, 63, 0.13), 0 3px 10px rgba(30, 32, 38, 0.07);
  padding: 62px 40px 34px;
  transform-origin: 50% 48%;
}

.auth-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 10px solid #dcebe5;
  border-radius: 50%;
  background: #116746;
  color: #ffffff;
  box-shadow: 0 7px 20px rgba(15, 111, 77, 0.2);
  transform: translate(-50%, -50%);
}

.auth-avatar svg {
  width: 43px;
  height: 43px;
  stroke-width: 1.7;
}

.card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--login-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body.auth-page .auth-card h2 {
  margin-bottom: 8px;
  color: var(--login-ink);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 0;
}

body.auth-page .auth-card > p {
  margin-bottom: 25px;
  color: var(--login-muted);
  font-size: 14px;
}

body.auth-page label {
  gap: 8px;
  margin-top: 16px;
  color: #3c4043;
  font-size: 13px;
  font-weight: 650;
}

body.auth-page .field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.auth-page input {
  min-height: 52px;
  border: 1px solid #d6dfdb;
  border-radius: 4px;
  background: #f3f6f4 !important;
  color: var(--login-ink);
}

body.auth-page input::placeholder,
body.auth-page .input-wrapper svg {
  color: #92969d;
}

body.auth-page input:hover {
  border-color: #c4c7cc;
}

body.auth-page input:focus {
  border-color: var(--login-accent);
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(22, 135, 95, 0.14);
}

body.auth-page .password-toggle {
  color: #74777d;
}

body.auth-page .password-toggle:hover {
  background: #f2f3f5;
  color: var(--login-accent-hover);
}

body.auth-page .primary-action,
body.auth-page .register-action,
body.auth-page .dialog-actions .submit-register,
body.auth-page .dialog-actions .confirm-forgot {
  border-color: var(--login-accent);
  background: var(--login-accent) !important;
  box-shadow: none;
  color: #ffffff;
}

body.auth-page .primary-action {
  min-height: 48px;
  margin-top: 12px;
  border-radius: 4px;
  letter-spacing: 0;
}

body.auth-page .register-action {
  min-height: 46px;
  border-radius: 4px;
  background: #ffffff !important;
  color: var(--login-accent);
}

body.auth-page .auth-options {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
  margin-top: 11px;
}

body.auth-page .primary-action:hover,
body.auth-page .register-action:hover,
body.auth-page .dialog-actions .submit-register:hover,
body.auth-page .dialog-actions .confirm-forgot:hover {
  border-color: var(--login-accent-hover);
  background: var(--login-accent-hover) !important;
  box-shadow: 0 8px 18px rgba(15, 111, 77, 0.2);
}

body.auth-page .register-action:hover {
  border-color: #0f6f4d !important;
  background: #eef8f3 !important;
  color: #0f6f4d !important;
  -webkit-text-fill-color: #0f6f4d;
  box-shadow: 0 8px 18px rgba(15, 111, 77, 0.12);
}

body.auth-page .forgot-action {
  margin: 0;
  color: var(--login-accent);
  font-weight: 600;
}

body.auth-page .forgot-action:hover {
  color: var(--login-accent-hover);
}

body.auth-page .modal {
  background: rgba(25, 27, 31, 0.58);
}

body.auth-page .dialog {
  border-color: rgba(32, 33, 36, 0.12);
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(20, 22, 28, 0.22);
}

body.auth-page .dialog-head,
body.auth-page .dialog-actions button,
body.auth-page .close-action {
  background: #ffffff !important;
}

body.auth-page .forgot-message-icon {
  border-color: rgba(22, 135, 95, 0.24);
  background: #edf8f3;
  color: var(--login-accent);
}

@media (max-width: 900px) {
  .login-backdrop__brand {
    left: 24px;
  }
}

@media (max-width: 680px) {
  body.auth-page {
    align-items: center;
    padding: 24px 16px;
  }

  .login-backdrop__brand {
    display: none;
  }

  .login-backdrop__light {
    width: 82vw;
    height: 38vh;
    filter: blur(68px);
  }

  .login-backdrop__light--one {
    top: -17%;
    left: -32%;
  }

  .login-backdrop__light--two {
    top: -15%;
    right: -38%;
  }

  .login-backdrop__light--three {
    bottom: -18%;
    left: -34%;
  }

  .login-backdrop__light--four {
    right: -38%;
    bottom: -14%;
  }

  body.auth-page .auth-shell {
    width: min(410px, 100%);
    margin-left: 0;
  }

  body.auth-page .auth-card {
    padding: 58px 24px 27px;
  }

  .auth-avatar {
    width: 84px;
    height: 84px;
    border-width: 9px;
  }
}

@media (max-height: 640px) and (min-width: 681px) {
  body.auth-page {
    overflow-y: auto;
    padding-block: 20px;
  }

  body.auth-page .auth-card {
    padding-block: 26px 24px;
  }

  .card-brand {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page *,
  body.auth-page *::before,
  body.auth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
