/**
 * Sandbox Signup Page
 * 
 * Premium design matching sandbox authenticated pages:
 * - Same background gradients using design tokens
 * - Brand backdrop SVG (check + chevron)
 * - Dashboard card styling (glassmorphism)
 * - Gold gradient "Get Started" button (matches marketing hero CTA)
 * - .btn-glass for login button (from components/buttons.css)
 * - Dark themed timeline section
 */

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   PAGE FOUNDATION
   ============================================ */

.sandbox-signup {
  background: var(--cert-color-bg-deepest);
  min-height: 100vh;
  font-family: var(--cert-font-body);
  color: var(--cert-color-text-primary);
}

.sandbox-signup::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cert-gradient-page-radial), var(--cert-gradient-page);
  pointer-events: none;
  z-index: 0;
}

/* Fixed Background Brand Mark - reveals through card gaps */
/* GPU acceleration fixes iOS Safari scroll momentum jump */
.brand-backdrop {
  position: fixed;
  top: 180px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  -webkit-transform: translateX(-50%) translateZ(0);
  width: 750px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ============================================
   SIGNUP PAGE LAYOUT
   ============================================ */

.signup-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.signup-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ============================================
   SIGNUP CARD - Uses dashboard-card base
   ============================================ */

.signup-card {
  background: rgba(11, 22, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(224, 182, 71, 0.3);
  border-radius: 16px;
  padding: 0;
  position: relative;
  overflow: visible;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
}

.signup-card:hover {
  border-color: rgba(224, 182, 71, 0.5);
}

/* ============================================
   SIGNUP CARD HEADER (Logo Area)
   ============================================ */

.signup-card__header {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Legacy .certified-logo styles removed - now using shared .bezel component from bezel.css */

/* ============================================
   SIGNUP CARD BODY
   ============================================ */

.signup-card__body {
  position: relative;
  padding: 0 2rem 2rem;
  z-index: 1;
}

/* ============================================
   WELCOME TEXT
   ============================================ */

.signup-welcome {
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out 0.4s forwards;
}

.signup-welcome__title {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cert-color-white);
  margin: 0 0 0.5rem 0;
}

.signup-welcome__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ============================================
   SIGNUP FORM
   ============================================ */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out 0.5s forwards;
}

.signup-form__section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.signup-form__section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cert-color-white);
  text-transform: uppercase;
  letter-spacing: var(--cert-letter-spacing-wide);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.signup-form__section-header i {
  font-size: 0.8125rem;
}

.signup-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.signup-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.signup-form__label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: var(--cert-font-weight-medium);
  color: var(--cert-color-text-secondary);
  letter-spacing: var(--cert-letter-spacing-wide);
  text-transform: uppercase;
}

.signup-form__label-icon {
  color: var(--cert-color-gold);
  font-size: 0.6875rem;
}

.signup-form__label-favicon {
  width: 11px;
  height: 11px;
  opacity: 0.9;
  filter: drop-shadow(0 0 2px rgba(224, 182, 71, 0.3));
}

.signup-form__required {
  color: var(--cert-color-salmon);
  font-weight: 600;
  margin-left: 0.125rem;
}

.signup-form__input,
.signup-form__select,
.signup-form__textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--cert-color-bg-tertiary);
  border: 1px solid var(--cert-color-border-default);
  border-radius: var(--cert-radius-lg);
  color: var(--cert-color-text-primary);
  font-family: var(--cert-font-body);
  font-size: 0.875rem;
  transition: var(--cert-transition-normal);
  box-sizing: border-box;
}

.signup-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E0B647' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.signup-form__textarea {
  resize: vertical;
  min-height: 70px;
}

.signup-form__input::placeholder,
.signup-form__textarea::placeholder {
  color: var(--cert-color-text-muted);
}

.signup-form__input:focus,
.signup-form__select:focus,
.signup-form__textarea:focus {
  outline: none;
  border-color: var(--cert-color-border-gold-strong);
  background: var(--cert-color-bg-secondary);
  box-shadow: var(--cert-shadow-focus);
}

/* ============================================
   SUBMIT BUTTON - Gold Gradient (Marketing Hero Style)
   Matches the Get Started button from /signup
   ============================================ */

.signup-form__submit {
  text-align: center;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-signup-hero {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #19324B;
  background: linear-gradient(135deg, #E0B647 0%, #D4A843 50%, #FFC72C 100%);
  background-size: 200% 200%;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 6px 20px rgba(224, 182, 71, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-signup-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.btn-signup-hero:hover {
  background: linear-gradient(135deg, #FFC72C 0%, #E0B647 50%, #D4A843 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 30px rgba(224, 182, 71, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #19324B;
}

.btn-signup-hero:active {
  transform: translateY(-1px) scale(1.01);
}

.signup-form__note {
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   WHAT HAPPENS NEXT - Dark Theme Timeline
   ============================================ */

.signup-process {
  text-align: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
}

.signup-process__title {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cert-color-white);
  margin: 0 0 0.5rem 0;
}

.signup-process__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2rem 0;
}

.signup-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.signup-timeline__line {
  display: none;
}

.signup-step {
  text-align: center;
}

.signup-step__badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(224, 182, 71, 0.2) 0%, rgba(224, 182, 71, 0.1) 100%);
  border: 2px solid rgba(224, 182, 71, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(224, 182, 71, 0.2);
}

.signup-step__number {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cert-color-gold);
}

.signup-step__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  background: rgba(224, 182, 71, 0.1);
  border: 1px solid rgba(224, 182, 71, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup-step__icon i {
  font-size: 1rem;
  color: var(--cert-color-gold);
}

.signup-step__title {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cert-color-white);
  margin: 0 0 0.5rem 0;
}

.signup-step__description {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   LOGIN REDIRECT CARD
   ============================================ */

.login-redirect-card {
  background: rgba(11, 22, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(224, 182, 71, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 0.7s forwards;
  transition: all 0.3s ease;
}

.login-redirect-card:hover {
  border-color: rgba(224, 182, 71, 0.5);
  transform: translateY(-2px);
}

.login-redirect-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(224, 182, 71, 0.2) 0%, rgba(224, 182, 71, 0.08) 100%);
  border: 2px solid rgba(224, 182, 71, 0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 6px 20px rgba(224, 182, 71, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-redirect-card__icon i {
  font-size: 1.5rem;
  color: var(--cert-color-gold);
}

.login-redirect-card__title {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #ffffff;
  margin: 0 0 0.625rem 0;
}

.login-redirect-card__description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .signup-container {
    gap: 1.5rem;
  }
  
  .signup-card__header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .signup-card__body {
    padding: 0 1.25rem 1.5rem;
  }
  
  .signup-form__row {
    grid-template-columns: 1fr;
  }
  
  .signup-timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .signup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .signup-step:not(:last-child) {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(224, 182, 71, 0.15);
  }
  
  .signup-process {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
  
  .brand-backdrop {
    width: 500px;
    top: 100px;
  }
  
  .btn-signup-hero {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .signup-page {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  
  .signup-card {
    border-radius: 12px;
  }
  
  .signup-welcome__title {
    font-size: 1.5rem;
  }
  
  .login-redirect-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .brand-backdrop {
    width: 350px;
    opacity: 0.12;
  }
  
  @supports (-webkit-touch-callout: none) {
    .signup-card,
    .login-redirect-card {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      background: rgba(11, 22, 30, 0.95);
    }
  }
}

/* ============================================
   THANK YOU PAGE STYLES
   ============================================ */

.thankyou-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(224, 182, 71, 0.25) 0%, rgba(224, 182, 71, 0.1) 100%);
  border: 2px solid rgba(224, 182, 71, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(224, 182, 71, 0.3);
}

.thankyou-icon i {
  font-size: 2.5rem;
  color: var(--cert-color-gold, #E0B647);
}

.thankyou-title {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--cert-color-white, #ffffff);
  margin: 0 0 0.75rem 0;
  text-align: center;
}

.thankyou-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem 0;
  text-align: center;
}

.thankyou-cta {
  text-align: center;
  margin-top: 2rem;
}

