/* Donorgram auth — split-screen sign-in (reference-inspired) */

:root {
  --auth-brand: #0d6b4c;
  --auth-brand-deep: #084f38;
  --auth-accent: #19a56d;
  --auth-teal: #0f766e;
  --auth-ink: #0f172a;
  --auth-muted: #64748b;
  --auth-line: #e2e8f0;
  --auth-soft: #f1f5f9;
  --auth-panel: #063b34;
  --auth-panel-mid: #0a5248;
  --auth-white: #ffffff;
  --auth-radius: 12px;
  --auth-font: "DM Sans", system-ui, sans-serif;
  --auth-display: "Sora", "DM Sans", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body.auth-body {
  font-family: var(--auth-font);
  color: var(--auth-ink);
  background: var(--auth-white);
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ——— Left: form pane ——— */
.auth-form-pane {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.75rem 2.5rem 1.25rem;
  background: var(--auth-white);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--auth-ink);
  font-family: var(--auth-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  width: fit-content;
}

.auth-brand .brand-logo,
.brand-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  border-radius: 0.55rem;
  object-fit: contain;
}

.auth-brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(145deg, var(--auth-accent), var(--auth-brand-deep));
  box-shadow: 0 8px 18px rgba(13, 107, 76, 0.28);
}

.auth-form-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.auth-heading {
  margin: 0;
  text-align: center;
  font-family: var(--auth-display);
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
}

.auth-subheading {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 1.65rem 0 1.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--auth-soft);
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab.is-active {
  background: var(--auth-white);
  color: var(--auth-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.auth-tab:hover:not(.is-active) {
  color: var(--auth-ink);
}

.auth-field {
  margin-bottom: 1.05rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-ink);
}

.auth-label .req {
  color: #2563eb;
  margin-left: 0.15rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .auth-icon {
  position: absolute;
  left: 0.9rem;
  width: 1.15rem;
  height: 1.15rem;
  color: #94a3b8;
  pointer-events: none;
}

.auth-input-wrap .auth-icon-btn {
  position: absolute;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.auth-input-wrap .auth-icon-btn:hover {
  color: var(--auth-ink);
  background: var(--auth-soft);
}

.auth-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 2.75rem 0.7rem 2.75rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.75rem;
  background: var(--auth-white);
  color: var(--auth-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(25, 165, 109, 0.18);
}

.auth-error {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: #dc2626;
}

.auth-error li + li {
  margin-top: 0.2rem;
}

.auth-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.88rem;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 1.25rem;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-brand);
}

.auth-link {
  color: var(--auth-brand);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--auth-brand-deep);
  text-decoration: underline;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.05rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #14986a 0%, var(--auth-brand) 100%);
  color: var(--auth-white);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 107, 76, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(13, 107, 76, 0.34);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
  margin: 1.45rem 0 1.1rem;
  color: var(--auth-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-line);
}

.auth-social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.75rem;
  background: var(--auth-white);
  color: var(--auth-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: default;
  opacity: 0.92;
}

.auth-social-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.auth-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
}

.auth-form-footer a {
  color: var(--auth-brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

.auth-demo-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ——— Right: showcase ——— */
.auth-showcase {
  position: relative;
  overflow: hidden;
  color: #e8f7f2;
  background:
    radial-gradient(ellipse 80% 55% at 70% 15%, rgba(25, 165, 109, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(15, 118, 110, 0.35), transparent 55%),
    linear-gradient(160deg, #042821 0%, var(--auth-panel) 45%, #0a3d32 100%);
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  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);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
}

.auth-float-stage {
  position: relative;
  width: min(100%, 28rem);
  height: 15.5rem;
  margin-bottom: 1.75rem;
}

.auth-float-card {
  position: absolute;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  padding: 0.85rem 1rem;
  text-align: left;
  color: #fff;
  animation: auth-float 6s ease-in-out infinite;
}

.auth-float-card--a {
  top: 0.5rem;
  left: 0;
  width: 10.5rem;
  animation-delay: 0s;
}

.auth-float-card--b {
  top: 0;
  right: 0;
  width: 13.5rem;
  animation-delay: 0.8s;
}

.auth-float-card--c {
  bottom: 0.25rem;
  left: 18%;
  width: 14rem;
  animation-delay: 1.4s;
}

.auth-float-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.auth-float-card .value {
  font-family: var(--auth-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-float-card .meta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.auth-ring {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background:
    conic-gradient(var(--auth-accent) 0 72%, rgba(255, 255, 255, 0.15) 72% 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  margin-bottom: 0.5rem;
}

.auth-bar {
  height: 0.35rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.auth-bar > span {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--auth-accent), #5eead4);
}

.auth-showcase-mark {
  width: auto;
  height: auto;
  margin: 0 auto 1.35rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  animation: auth-pulse 4.5s ease-in-out infinite;
  overflow: hidden;
}

.auth-showcase-mark .brand-logo {
  height: 4.5rem;
  width: auto;
  border-radius: 0.85rem;
}

.auth-showcase-mark svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: #fff;
}

.auth-showcase h2 {
  margin: 0;
  max-width: 22rem;
  font-family: var(--auth-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth-showcase p {
  margin: 0.9rem auto 0;
  max-width: 24rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(232, 247, 242, 0.78);
}

.auth-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.auth-dots span {
  width: 1.35rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.auth-dots span.is-active {
  background: #fff;
}

@keyframes auth-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes auth-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

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

  .auth-showcase {
    display: none;
  }

  .auth-form-pane {
    min-height: 100vh;
    padding: 1.25rem 1.25rem 1rem;
  }

  .auth-form-center {
    max-width: 24rem;
  }
}
