/* ============================================================
   SIGNUP.CSS
   Client type selection page — glassmorphic dark cards
   Specific to frontendV2/signup.html
   ============================================================ */

/* ── Layout ── */
.signup-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Header ── */
.signup-header {
  text-align: center;
  margin-bottom: 28px;
  animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.signup-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.signup-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Client cards grid ── */
.client-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.client-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  /* Flex column to align buttons at bottom */
  display: flex;
  flex-direction: column;
}
.client-card:nth-child(1) { animation-delay: 0.15s; }
.client-card:nth-child(2) { animation-delay: 0.3s; }

/* Top gradient accent line */
.client-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--red) 30%, var(--mauve) 70%, transparent 95%);
  opacity: 0.4;
}

.client-card:hover {
  border-color: rgba(205,51,62,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(205,51,62,0.1), 0 0 0 1px rgba(205,51,62,0.1);
}

/* ── Client icon ── */
.client-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--red) 0%, var(--mauve) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(205,51,62,0.2);
}

/* ── Client text ── */
.client-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: center;
}
.client-description {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.65;
  font-size: 13px;
}

/* ── Features list ── */
.client-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.client-features li {
  padding: 7px 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-size: 13px;
}
.client-features li::before {
  content: '\2713';
  color: var(--red-light);
  font-weight: 700;
  margin-right: 10px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Client button ── */
.btn-client {
  width: 100%;
  display: block;
  margin-top: auto;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--red) 0%, var(--mauve) 55%, var(--navy) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 24px rgba(205,51,62,0.18);
  position: relative;
  overflow: hidden;
}
.btn-client::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
}
.btn-client:hover::before { left: 100%; }
.btn-client:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(205,51,62,0.28);
  color: white;
  text-decoration: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 700px) {
  .signup-container {
    padding: 40px 20px 32px;
    justify-content: flex-start;
    padding-top: 48px;
  }
  .signup-header { margin-bottom: 36px; }

  .client-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .client-card {
    padding: 28px 22px;
  }

  .client-card:nth-child(1) {
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }
  .client-card:nth-child(2) {
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }
  .signup-header {
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  }
}

@media (max-width: 400px) {
  .signup-container { padding: 36px 16px 24px; }
  .client-card { padding: 24px 18px; }
  .client-title { font-size: 20px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .signup-container { max-width: 600px; }
  .client-cards { gap: 20px; }
  .client-card { padding: 32px 24px; }
}

/* ══════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════════ */

body.auth-light .signup-title {
  color: var(--text-main);
}
body.auth-light .signup-subtitle {
  color: var(--text-muted);
}

/* White cards with soft shadow — no glassmorphism */
body.auth-light .client-card {
  background: #FFFFFF;
  border: 1px solid var(--navy-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(30,6,74,0.04), 0 0 0 1px rgba(232,229,240,0.5);
}
body.auth-light .client-card::before {
  opacity: 0.6;
}
body.auth-light .client-card:hover {
  border-color: rgba(205,51,62,0.25);
  box-shadow: 0 20px 60px rgba(205,51,62,0.08), 0 0 0 1px rgba(205,51,62,0.1);
}

body.auth-light .client-title {
  color: var(--text-main);
}
body.auth-light .client-description {
  color: var(--text-muted);
}
body.auth-light .client-features li {
  color: var(--text-muted);
}
body.auth-light .client-features li::before {
  color: var(--red);
}
