:root {
  --auth-surface: rgba(14, 14, 14, 0.88);
  --auth-surface-2: rgba(22, 22, 22, 0.94);
  --auth-line: rgba(255, 255, 255, 0.12);
}

body.area-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(223, 51, 17, 0.18) 0%, transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(255, 106, 61, 0.18) 0%, transparent 22%),
    linear-gradient(180deg, #080808 0%, #040404 100%);
}

.auth-hero,
.member-hero {
  padding-top: 6.2rem;
}

.auth-layout,
.member-shell {
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.94), rgba(20, 20, 20, 0.92));
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: stretch;
}

.auth-intro {
  padding: 1rem;
}

.auth-intro h1,
.member-intro h1 {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-lead,
.member-lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: #dddddd;
  font-size: 1.04rem;
}

.auth-feature-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.auth-feature-card,
.dashboard-card {
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.92), rgba(29, 29, 29, 0.9));
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  padding: 1rem;
}

.auth-feature-card h2,
.dashboard-card h3 {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-feature-card p,
.dashboard-card p {
  margin: 0.45rem 0 0;
  color: #cfcfcf;
}

.auth-card {
  background: linear-gradient(145deg, rgba(16, 16, 16, 0.98), rgba(25, 25, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1.25rem;
}

.auth-card-head h2 {
  margin: 0.3rem 0 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-mini-copy {
  margin: 0.45rem 0 0;
  color: #c7c7c7;
}

.social-grid {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.social-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.social-btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.social-google {
  background:
    linear-gradient(145deg, rgba(14, 14, 14, 0.95), rgba(18, 18, 18, 0.92)),
    linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.social-apple {
  background: linear-gradient(145deg, rgba(27, 27, 27, 0.98), rgba(10, 10, 10, 0.95));
}

.social-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.social-google .social-mark {
  background: rgba(255, 255, 255, 0.95);
}

.social-apple .social-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.social-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-apple .social-mark svg {
  width: 25px;
  height: 31px;
  transform: none;
}

.social-status {
  margin: 0.85rem 0 0;
  color: #bcbcbc;
  font-size: 0.9rem;
}

.auth-divider {
  margin: 1.1rem 0;
  position: relative;
  text-align: center;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  position: relative;
  padding: 0 0.7rem;
  background: linear-gradient(145deg, rgba(16, 16, 16, 0.98), rgba(25, 25, 25, 0.96));
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  font: inherit;
  font-weight: 800;
  padding: 0.82rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.auth-panel {
  margin-top: 1rem;
}

.auth-form {
  display: grid;
  gap: 0.82rem;
}

.auth-form label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #dfdfdf;
}

.auth-submit {
  margin-top: 0.25rem;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.auth-switch-line {
  margin: 0.9rem 0 0;
  color: #bfbfbf;
  font-size: 0.95rem;
}

.inline-switch {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-alert {
  margin-top: 0.95rem;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.auth-alert-success {
  background: rgba(47, 170, 103, 0.16);
  border: 1px solid rgba(47, 170, 103, 0.42);
  color: #8be1b0;
}

.auth-alert-error {
  background: rgba(208, 74, 49, 0.14);
  border: 1px solid rgba(208, 74, 49, 0.38);
  color: #ffb1a3;
}

.auth-alert-warning {
  background: rgba(251, 188, 5, 0.12);
  border: 1px solid rgba(251, 188, 5, 0.3);
  color: #ffd77a;
}

.member-shell {
  padding: 1.25rem;
}

.member-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  align-items: start;
}

.member-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.member-summary {
  background: linear-gradient(160deg, rgba(12, 12, 12, 0.96), rgba(22, 22, 22, 0.94));
  border: 1px solid var(--auth-line);
  border-top: 3px solid var(--accent);
  border-radius: 20px;
  padding: 1.15rem;
}

.member-summary h2 {
  margin: 0.4rem 0 0.85rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
  color: #d4d4d4;
}

.member-dashboard {
  padding-top: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-label {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-card a {
  margin-top: 1rem;
  display: inline-flex;
  color: #fff;
  border-bottom: 1px solid var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .auth-layout,
  .member-hero-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-hero,
  .member-hero {
    padding-top: 5rem;
  }

  .auth-layout,
  .member-shell,
  .auth-card {
    padding: 1rem;
  }

  .social-grid,
  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .auth-intro h1,
  .member-intro h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}
