/* Signup Page Styles */
:root {
  --primary-color: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-dark: #3730a3;
  --success-color: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Animation */
.signup-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.signup-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.bg-element-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bg-element-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.bg-element-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main Content */
.signup-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

/* Signup Card */
.signup-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.payment-card.full-width {
  max-width: 800px;
}

.signup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signup-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem;
}

.signup-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.signup-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.signup-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Form Styles */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-control {
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Modules Section */
.modules-section {
  margin: 1rem 0;
}

.modules-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 1rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.module-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.module-option:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.module-option.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
}

.module-option i {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.module-option span {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

/* Terms Section */
.terms-section {
  margin: 1rem 0;
}

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-check-input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Buttons */
.btn-signup {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-signup:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-back {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-back:hover {
  background: var(--bg-light);
  border-color: var(--text-secondary);
}

.btn-back i {
  width: 16px;
  height: 16px;
}

/* Payment Plans */
.payment-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.plan-option {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: var(--bg-white);
}

.plan-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan-option.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.plan-option.popular {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.plan-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-header {
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-vat {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features i {
  width: 16px;
  height: 16px;
  color: var(--success-color);
  flex-shrink: 0;
}

.btn-plan {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-plan:hover {
  background: var(--primary-color);
  color: white;
}

.btn-plan-primary {
  background: var(--primary-color);
  color: white;
}

.btn-plan-primary:hover {
  background: var(--primary-dark);
}

/* Token Selection for Signup */
.token-selection-container {
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.token-selection-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.token-dropdown {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-weight: 500;
  background: var(--bg-white);
  transition: all 0.2s ease;
  width: 100%;
  font-size: 0.9rem;
}

.token-dropdown:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}
/* Payment Methods */
.payment-methods {
  margin-top: 2rem;
}

.payment-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
  text-align: center;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.payment-option:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.payment-option.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
}

.payment-option i {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.payment-option span {
  font-size: 0.9rem;
  font-weight: 500;
}

.payment-form {
  margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Responsive adjustments handled by existing styles */
}

@media (max-width: 768px) {
  .signup-container {
    padding: 1rem;
  }
  
  .signup-card {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-plans {
    grid-template-columns: 1fr;
  }
  
  .payment-options {
    grid-template-columns: 1fr;
  }
}

/* Stage Transitions */
.signup-stage {
  transition: all 0.3s ease;
}

.signup-stage.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.signup-stage.fade-in {
  opacity: 1;
  transform: translateX(0);
}