/* Auth / login shell — Figma Avatar user screens */
.sa-body--auth {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(112, 192, 79, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 42% at 6% 94%, rgba(105, 203, 73, 0.16), transparent 55%),
    #eef1f3;
  font-family: "DM Sans", system-ui, sans-serif;
}

.sa-auth {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 2.5rem;
  overflow: hidden;
}

.sa-auth__glow {
  position: absolute;
  z-index: 0;
  width: min(58vw, 32rem);
  height: min(58vw, 32rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 192, 79, 0.46) 0%, rgba(112, 192, 79, 0.14) 42%, transparent 72%);
  filter: blur(32px);
  pointer-events: none;
}

.sa-auth__glow--tr {
  top: -8%;
  right: 8%;
}

.sa-auth__glow--bl {
  bottom: -12%;
  left: 4%;
}

.sa-auth__main {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.sa-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  width: 100%;
}

.sa-auth-brand__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.sa-auth-brand__logo:hover,
.sa-auth-brand__logo:focus-visible {
  opacity: 0.92;
}

.sa-auth-brand__icon {
  display: block;
  width: 6.25rem;
  height: 5rem;
  overflow: visible;
}

.sa-auth-brand__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sa-auth-brand__word {
  display: block;
  margin-top: 0.85rem;
  color: #252E46;
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.sa-auth-brand__tagline {
  display: block;
  margin-top: 0.4rem;
  color: #8b8b8b;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.sa-auth-card {
  width: 100%;
  padding: 2.15rem 1.9rem 1.85rem;
  border: 0;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 22px 48px rgba(15, 23, 42, 0.1);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.sa-auth-card__title {
  margin: 0 0 0.4rem;
  color: #343A40;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
}

.sa-auth-card__subtitle {
  margin: 0 0 1.45rem;
  color: #9a9a9a;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.sa-auth-card .sa-field {
  margin-bottom: 0.85rem;
}

.sa-auth-card__title--left {
  text-align: left;
}

.sa-auth-card__subtitle--left {
  margin-bottom: 1.15rem;
  text-align: left;
}

.sa-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.85rem;
  color: #70c04f;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.sa-auth-back:hover,
.sa-auth-back:focus-visible {
  color: #57a33b;
}

.sa-auth-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #f6faf2;
  color: #4f7a3a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.sa-auth-forgot {
  display: block;
  margin: 0.9rem 0 0;
  color: #70c04f;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.sa-auth-forgot:hover,
.sa-auth-forgot:focus-visible {
  color: #57a33b;
  text-decoration: underline;
}

.sa-auth-card .validation-summary-valid {
  display: none;
}

.sa-auth-card .btn-sa-auth {
  --bs-btn-color: #fff;
  --bs-btn-bg: #70c04f;
  --bs-btn-border-color: #70c04f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #62b143;
  --bs-btn-hover-border-color: #62b143;
  --bs-btn-focus-shadow-rgb: 112, 192, 79;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #57a33b;
  --bs-btn-active-border-color: #57a33b;
  min-height: 3.15rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.sa-auth-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.1rem;
}

.sa-auth-consent .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border-color: #cfcfcf;
  cursor: pointer;
}

.sa-auth-consent .form-check-input:checked {
  background-color: #70c04f;
  border-color: #70c04f;
}

.sa-auth-consent .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(112, 192, 79, 0.22);
}

.sa-auth-consent__label {
  margin: 0;
  color: #6f6f6f;
  font-size: 0.78rem;
  line-height: 1.4;
  cursor: pointer;
}

.sa-auth-consent__label a {
  color: #70c04f;
  font-weight: 500;
  text-decoration: none;
}

.sa-auth-consent__label a:hover,
.sa-auth-consent__label a:focus-visible {
  color: #57a33b;
  text-decoration: underline;
}

.sa-auth-card__footer {
  margin-top: 1.15rem;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.88rem;
}

.sa-auth-card__footer a {
  color: #70c04f;
  font-weight: 600;
  text-decoration: none;
}

.sa-auth-card__footer a:hover,
.sa-auth-card__footer a:focus-visible {
  color: #57a33b;
  text-decoration: underline;
}

.sa-auth-card .alert-danger,
.sa-auth-card .validation-summary-errors {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(220, 90, 90, 0.28);
  border-radius: 0.85rem;
  background: rgba(255, 236, 236, 0.95);
  color: #8a3a3a;
  font-size: 0.88rem;
  box-shadow: none;
}

.sa-auth-card .alert-danger ul,
.sa-auth-card .validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sa-auth-card .alert-danger li,
.sa-auth-card .validation-summary-errors li {
  color: #8a3a3a;
}

.sa-auth-card .text-danger,
.sa-auth-card .field-validation-error,
.sa-auth-card .sa-field__error {
  color: #ef4444 !important;
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .sa-auth {
    padding: 1.5rem 1rem 2rem;
  }

  .sa-auth-card {
    padding: 1.6rem 1.25rem 1.35rem;
    border-radius: 1.6rem;
  }

  .sa-auth-card__title {
    font-size: 1.4rem;
  }
}
