:root {
  --deep-blue: #0b1f3b;
  --neon-lime: #c6ff00;
  --charcoal: #0a0a0a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.78);
  --text-dark: #102241;
  --border-soft: rgba(255, 255, 255, 0.12);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(198, 255, 0, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(11, 31, 59, 0.55), transparent 32%),
    linear-gradient(135deg, #081122 0%, #0b1f3b 42%, #0a0a0a 100%);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.28;
}

body.landing-page {
  min-height: 100dvh;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -80px;
  left: -60px;
  background: rgba(198, 255, 0, 0.35);
}

.page-glow-right {
  right: -90px;
  bottom: -90px;
  background: rgba(27, 55, 118, 0.5);
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.eyebrow-row,
.eyebrow-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow-pill {
  background: rgba(198, 255, 0, 0.14);
  color: var(--neon-lime);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 255, 0, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
}

.landing-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1rem;
}

.landing-copy,
.auth-brand,
.auth-card,
.dashboard-shell {
  border-radius: var(--radius-xl);
}

.landing-copy {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.landing-logo {
  width: min(480px, 100%);
  margin: 1rem 0 1.4rem;
}

.landing-title,
.auth-title,
.dashboard-title {
  margin: 0;
  line-height: 0.98;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  letter-spacing: -0.04em;
}

.landing-title span {
  display: block;
  color: var(--neon-lime);
}

.landing-description,
.auth-description,
.dashboard-description {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.55vw, 1.08rem);
  line-height: 1.65;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.feature-chip,
.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.94rem;
}

.feature-chip-muted,
.provider-pill-muted {
  color: var(--text-secondary);
}

.feature-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--neon-lime);
  box-shadow: 0 0 18px rgba(198, 255, 0, 0.75);
}

.landing-visuals {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 0;
}

.visual-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.visual-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 18, 33, 0.72);
  min-height: 0;
  box-shadow: var(--shadow-strong);
}

.visual-card-wide {
  min-height: 0;
}

.visual-card-small {
  aspect-ratio: 1.05 / 0.74;
}

.visual-card-shirts {
  background: rgba(245, 245, 245, 0.08);
}

.visual-label {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(8, 17, 34, 0.75);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}

.landing-footer p,
.micro-copy,
.auth-message,
.summary-label,
.user-summary-card span {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.social-button,
.mode-button {
  border: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.primary-button,
.secondary-button,
.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 54px;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--neon-lime), #b0e400);
  color: #081122;
  box-shadow: 0 18px 36px rgba(198, 255, 0, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.social-button:hover,
.mode-button:hover {
  transform: translateY(-1px);
}

.secondary-button,
.social-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.full-width,
.social-button {
  width: 100%;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.auth-brand,
.auth-card {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.back-link {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.auth-logo,
.dashboard-logo {
  width: min(360px, 100%);
  margin-top: 1rem;
}

.auth-preview-card {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.auth-preview-image {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.coming-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-header h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  letter-spacing: -0.04em;
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.15rem 0;
  color: var(--text-secondary);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-button {
  min-height: 46px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
}

.mode-button.active {
  background: rgba(198, 255, 0, 0.12);
  color: var(--neon-lime);
  box-shadow: inset 0 0 0 1px rgba(198, 255, 0, 0.2);
}

.email-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.field-group input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  padding: 0.95rem 1rem;
  outline: none;
}

.field-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field-group input:focus {
  border-color: rgba(198, 255, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(198, 255, 0, 0.08);
}

.auth-message {
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.auth-message.success {
  color: var(--neon-lime);
}

.auth-message.error {
  color: #ff8f8f;
}

.dashboard-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1rem;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
}

.user-summary-card {
  margin-top: 1.5rem;
  padding: 1.1rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-summary-card strong,
.user-summary-card span {
  display: block;
}

.dashboard-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  body.landing-page {
    overflow: auto;
  }

  .landing-shell,
  .auth-shell {
    min-height: auto;
  }

  .landing-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .landing-copy {
    order: 1;
  }

  .landing-visuals {
    order: 2;
    grid-template-rows: auto auto;
  }

  .landing-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .landing-shell,
  .auth-shell,
  .dashboard-page {
    padding: 0.8rem;
  }

  .landing-title,
  .auth-title,
  .dashboard-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .visual-card-row {
    grid-template-columns: 1fr;
  }

  .landing-logo,
  .auth-logo,
  .dashboard-logo {
    width: min(300px, 100%);
  }
}

@media (max-height: 860px) and (min-width: 1081px) {
  .landing-title {
    font-size: clamp(2rem, 3.2vw, 3.6rem);
  }

  .landing-description {
    font-size: 0.98rem;
  }

  .feature-row {
    margin-top: 1.15rem;
    gap: 0.7rem;
  }

  .feature-chip {
    padding: 0.62rem 0.88rem;
    font-size: 0.88rem;
  }
}

@media (max-height: 760px) and (min-width: 1081px) {
  .visual-card-small:last-child {
    display: none;
  }

  .visual-card-row {
    grid-template-columns: 1fr;
  }

  .landing-logo {
    width: min(410px, 92%);
    margin-bottom: 1rem;
  }

  .landing-description {
    line-height: 1.5;
  }
}
