/* Global resets and font settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 50% 50%, #1b1b1b 0%, #000 100%);
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* Container centering */
.signup-container {
  width: 90% !important;
  max-width: 1200px !important;
  padding: 0 1rem;
}


/* Card styling */
.signup-card {
  background-color: #111;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto;
}

/* Back arrow */
.arrow-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s ease;
}

.arrow-back:hover {
  color: #fff;
}

/* Form styling */
.signup-form {
  width: 100% !important;
  max-width: 800px !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Profile Signup Specific Styles */
.profile-signup-container {
  background: #171717;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
  width: 90% !important;
  max-width: 1200px !important;
  margin: 0 auto;
}

.profile-signup-card {
  background-color: #171717;
  flex: 1;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto;
}

.profile-signup-form {
  width: 100% !important;
  max-width: 800px !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}

.profile-signup-logo {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  margin-bottom: 1rem;
  object-fit: contain;
}

.profile-picture-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-preview-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px dashed #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: #222;
}

.profile-preview-placeholder:hover {
  border-color: #777;
}

.profile-preview-placeholder i {
  font-size: 24px;
  color: #666;
}

.profile-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
}

.profile-pic-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.choose-photo-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.choose-photo-btn:hover {
  background: #444;
}

.profile-signup-btn {
  background: #8b5cf6;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-signup-btn:hover {
  background: #7c3aed;
}

.profile-signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .signup-container {
    padding: 0;
  }
  
  .signup-card {
    padding: 1rem;
  }
  
  .signup-form {
    max-width: 100%;
    padding: 0;
  }
  
  .signup-header {
    padding: 0.5rem;
  }
  
  .profile-signup-container {
    padding: 0;
  }
  
  .profile-signup-card {
    padding: 1rem;
  }
  
  .profile-signup-form {
    max-width: 100%;
    padding: 0;
  }
}

/* Title */
.signup-card h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 2rem;
  color: #fff;
}

.signup-card .subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #bbb;
  font-size: 0.9rem;
}

/* Logo styling */
.logo-container {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

.signup-logo {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

/* Form styling */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* Input groups */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  width: 100%;
}

.input-group label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
  color: #fff;
  text-align: left;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: left;
  box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  background: #444;
  border-color: #4f46e5;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #aaa;
}

.input-group select option {
  background: #333;
  color: #fff;
}

/* Radio button groups */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.radio-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem 1rem;
  border: 2px solid #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1a1a1a;
  min-height: 120px;
}

.radio-option:hover {
  border-color: #4f46e5;
  background: #1f1f1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option input[type="radio"]:checked + .radio-option-content {
  color: #4f46e5;
}

.radio-option input[type="radio"]:checked ~ .radio-option {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  box-shadow: 0 0 0 1px #4f46e5;
}

.radio-option-content {
  width: 100%;
  text-align: left;
  padding: 0;
}

.radio-option-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  transition: color 0.3s ease;
  text-align: left;
}

.radio-option-content p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
  text-align: left;
}

.radio-option:has(input[type="radio"]:checked) .radio-option-content h4 {
  color: #4f46e5;
}

.radio-option:has(input[type="radio"]:checked) .radio-option-content p {
  color: #8b8b8b;
}

/* Height selection */
.height-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.height-group {
  display: flex;
  flex-direction: column;
}

.height-group label {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Statistics grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Profile picture upload */
.profile-picture-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
  transition: border-color 0.3s ease;
}

.profile-preview:hover {
  border-color: #4f46e5;
}

.upload-button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.upload-button:hover {
  background: #444;
}

.upload-info {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.25rem;
}

/* Character counter */
.character-counter {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.character-counter.warning {
  color: #f59e0b;
}

.character-counter.error {
  color: #ef4444;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  accent-color: #4f46e5;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.4;
}

.checkbox-group a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.checkbox-group a:hover {
  color: #3c35b1;
}

/* Buttons */
.signup-btn {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 6px;
  background-color: #4f46e5;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.signup-btn:hover:not(:disabled) {
  background-color: #3c35b1;
}

.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner */
.loading-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.loading-spinner i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Messages */
.message {
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation links */
.nav-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

.nav-links a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3c35b1;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .signup-container {
    width: 95%;
  }
  
  .signup-card {
    padding: 1.5rem;
  }
  
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .radio-option {
    min-height: 100px;
    padding: 1rem;
  }
  
  .height-selection {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-picture-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Form validation states */
.input-group input {
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  border-color: #4f46e5;
}

.input-group input:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

.input-group input:invalid:not(:placeholder-shown):not(:focus),
.input-group input.error {
  border-color: #ef4444;
}

.input-group select:valid:not([value=""]) {
  border-color: #10b981;
}

.input-group textarea:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

/* Focus states */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Custom scrollbar */
.input-group textarea::-webkit-scrollbar {
  width: 6px;
}

.input-group textarea::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}

.input-group textarea::-webkit-scrollbar-thumb {
  background: #4f46e5;
  border-radius: 3px;
}

.input-group textarea::-webkit-scrollbar-thumb:hover {
  background: #3c35b1;
}

/* Plans Page Styles */
.plans-section {
    margin-bottom: 2rem;
}

.plans-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.plan-card input[type="radio"] {
    display: none;
}

.plan-card input[type="radio"]:checked + .plan-label {
    color: #4f46e5;
}

.plan-card input[type="radio"]:checked ~ .plan-features {
    opacity: 1;
}

.plan-card.plan-card-premium {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(255, 255, 255, 0.1));
}

.plan-card.plan-card-premium:hover {
    border-color: #f59e0b;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #fbbf24;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.plan-label {
    display: block;
    cursor: pointer;
    color: #fff;
}

.plan-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #4f46e5;
}

.plan-card.plan-card-premium .plan-icon {
    color: #fbbf24;
}

.plan-label h4 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.plan-label p {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.plan-features {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #e4e4e7;
    font-size: 0.9rem;
}

.plan-features li i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.team-league-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.team-league-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.selection-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.option-card {
    display: block;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 0.15);
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + .option-content {
    color: #4f46e5;
}

.option-card input[type="radio"]:checked ~ .option-content {
    color: #4f46e5;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    transition: color 0.3s ease;
}

.option-content i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Mobile responsiveness for plans */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card {
        padding: 1rem;
    }
    
    .selection-options {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        padding: 0.75rem;
    }
}
