:root {
  --sa-ink: #12201f;
  --sa-text: #20302f;
  --sa-muted: #71817f;
  --sa-green: #0f8f83;
  --sa-green-hover: #0b756c;
  --sa-deep: #102b29;
  --sa-deeper: #0a211f;
  --sa-line: #dce5e3;
  --sa-line-strong: #c7d4d1;
  --sa-soft: #f3f6f5;
  --sa-gold: #d6a33a;
  --sa-radius: 18px;
  --sa-radius-lg: 24px;
  --sa-focus: 0 0 0 4px rgba(15, 143, 131, 0.14);
}

.supporter-auth-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--sa-text);
  background: var(--sa-soft);
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

.supporter-auth-page :where(button, input) {
  font-family: inherit;
  letter-spacing: 0;
}

.supporter-auth-page :where(a, button, input):focus-visible {
  outline: 0;
  box-shadow: var(--sa-focus) !important;
}

.support-auth-nav {
  width: min(1480px, calc(100% - 48px));
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.support-auth-brand,
.support-auth-home {
  display: flex;
  align-items: center;
  color: var(--sa-ink);
  font-weight: 900;
  text-decoration: none;
}

.support-auth-brand {
  gap: 11px;
  font-size: 1rem;
}

.support-auth-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 6px;
  background: #e7f7f3;
  border: 1px solid #bfe8df;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 143, 131, 0.11);
}

.support-auth-home {
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--sa-line);
  border-radius: 11px;
  font-size: 0.8rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.support-auth-home:hover {
  color: var(--sa-green-hover);
  border-color: #add2cc;
  transform: translateY(-1px);
}

.support-auth-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: min(690px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  margin: 14px auto 34px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius-lg);
  box-shadow: 0 24px 70px rgba(8, 31, 28, 0.13);
}

.support-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 50px;
}

.support-auth-card > header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 27px;
}

.support-auth-card > header > div {
  min-width: 0;
}

.support-auth-card > header small,
.support-auth-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--sa-green);
  font-size: 0.76rem;
  font-weight: 900;
}

.support-auth-card h1 {
  margin: 0 0 4px;
  color: var(--sa-ink);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.35;
}

.support-auth-card header p {
  margin: 0;
  color: var(--sa-muted);
  font-size: 0.88rem;
}

.support-auth-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: var(--sa-green);
  background: #e5f6f2;
  border: 1px solid #c5e9e2;
  border-radius: 15px;
  font-size: 1.45rem;
}

.support-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 17px;
  padding: 12px 14px;
  color: #9c3022;
  background: #fff1ef;
  border: 1px solid #f5c8c1;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.support-auth-alert.is-success {
  color: #196b3a;
  background: #eaf8ef;
  border-color: #bce5c9;
}

.support-auth-form {
  display: grid;
  gap: 16px;
}

.support-auth-form label {
  display: grid;
  gap: 7px;
  color: #344c49;
  font-size: 0.8rem;
  font-weight: 900;
}

.support-auth-form label > span small {
  color: #8a9a98;
  font-size: 0.67rem;
}

.support-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.support-auth-control {
  position: relative;
  display: flex;
  align-items: center;
}

.support-auth-control input {
  width: 100%;
  height: 50px;
  padding: 0 43px 0 12px;
  color: var(--sa-ink);
  background: #fbfdfd;
  border: 1px solid #cedcda;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 700;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.support-auth-control input:focus {
  background: #ffffff;
  border-color: #34a79d;
  box-shadow: var(--sa-focus);
}

.support-auth-control > i {
  position: absolute;
  inset-inline-start: 14px;
  color: #6d8581;
}

.support-auth-control button {
  position: absolute;
  inset-inline-end: 7px;
  width: 36px;
  height: 36px;
  color: #526a67;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.support-auth-control button + i {
  inset-inline-start: 14px;
}

.support-auth-submit {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  background: var(--sa-green);
  border: 1px solid var(--sa-green);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 143, 131, 0.2);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.support-auth-submit:hover {
  background: var(--sa-green-hover);
  box-shadow: 0 14px 28px rgba(15, 143, 131, 0.24);
  transform: translateY(-2px);
}

.support-auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.support-auth-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 0;
  color: var(--sa-muted);
  font-size: 0.7rem;
}

.support-auth-switch {
  margin: 20px 0 0;
  color: #6b7d7a;
  font-size: 0.78rem;
  text-align: center;
}

.support-auth-switch a {
  color: var(--sa-green);
  font-weight: 900;
}

.support-auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 42px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #123b37 0%, var(--sa-deep) 58%, var(--sa-deeper) 100%);
  border-inline-start: 5px solid var(--sa-gold);
}

.support-auth-story__mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--sa-green);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  font-size: 1.55rem;
}

.support-auth-story .support-auth-eyebrow {
  color: #f1c45d;
}

.support-auth-story h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1.5;
}

.support-auth-story > p:not(.support-auth-eyebrow) {
  margin: 0;
  color: #d5e6e3;
  font-size: 0.88rem;
  line-height: 1.95;
}

.support-auth-points,
.support-auth-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.support-auth-points span {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 0.79rem;
  font-weight: 800;
}

.support-auth-points i {
  color: #70dfcb;
}

.support-auth-steps {
  padding: 0;
  list-style: none;
}

.support-auth-steps li {
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.support-auth-steps li > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--sa-deep);
  background: #ffffff;
  border-radius: 10px;
  font-weight: 900;
}

.support-auth-steps div {
  display: grid;
}

.support-auth-steps strong {
  font-size: 0.8rem;
}

.support-auth-steps small {
  color: #c8ddda;
  font-size: 0.69rem;
}

.ui-submit-status {
  min-height: 16px;
  margin: 0;
  color: #607773;
  font-size: 0.7rem;
  text-align: center;
}

.ui-button__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: sa-spin 700ms linear infinite;
}

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

@keyframes sa-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sa-slide-in {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sa-heart {
  0%, 72%, 100% { transform: scale(1); }
  80% { transform: scale(1.14); }
  90% { transform: scale(0.97); }
}

.support-auth-nav {
  animation: sa-rise 430ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.support-auth-shell {
  animation: sa-rise 620ms 80ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.support-auth-story > * {
  animation: sa-slide-in 580ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.support-auth-story > :nth-child(2) { animation-delay: 70ms; }
.support-auth-story > :nth-child(3) { animation-delay: 130ms; }
.support-auth-story > :nth-child(4) { animation-delay: 190ms; }
.support-auth-story > :nth-child(5) { animation-delay: 250ms; }

.support-auth-story__mark i,
.support-auth-icon i {
  animation: sa-heart 3.2s 1.1s ease-in-out infinite;
}

@media (max-width: 900px) {
  .support-auth-shell {
    grid-template-columns: 1fr;
  }

  .support-auth-story {
    order: -1;
    padding: 30px;
    border-top: 4px solid var(--sa-gold);
    border-inline-start: 0;
  }

  .support-auth-story h2 {
    font-size: 1.55rem;
  }

  .support-auth-story__mark {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    border-radius: 13px;
  }

  .support-auth-points,
  .support-auth-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-auth-points span {
    justify-content: center;
    text-align: center;
  }

  .support-auth-card {
    padding: 34px;
  }
}

@media (max-width: 600px) {
  .supporter-auth-page {
    font-size: 14px;
  }

  .support-auth-nav {
    width: calc(100% - 24px);
    height: 70px;
  }

  .support-auth-brand span,
  .support-auth-home span {
    display: none;
  }

  .support-auth-shell {
    width: calc(100% - 20px);
    min-height: 0;
    margin: 6px auto 22px;
    border-radius: 20px;
  }

  .support-auth-card {
    padding: 25px 19px;
  }

  .support-auth-card > header {
    align-items: flex-start;
  }

  .support-auth-card h1 {
    font-size: 1.45rem;
  }

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

  .support-auth-story {
    padding: 25px 21px;
  }

  .support-auth-story > p:not(.support-auth-eyebrow) {
    font-size: 0.8rem;
  }

  .support-auth-points {
    grid-template-columns: 1fr 1fr;
  }

  .support-auth-points span:last-child {
    grid-column: 1 / -1;
  }

  .support-auth-steps {
    grid-template-columns: 1fr;
  }
}

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