j/* === Signup Page Styles === */

.signup-page {
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header === */
.signup-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.signup-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.back-btn:hover {
  color: var(--text-primary);
  background: var(--background);
}

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


/* === Main Content === */
.signup-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.signup-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* === Title Section === */
.signup-title-section {
  text-align: center;
  margin-bottom: 3rem;
}

.signup-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.signup-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.signup-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* === Form Container === */
.signup-form-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
}

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

.form-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.form-icon i {
  width: 28px;
  height: 28px;
  color: #000;
}

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

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

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

/* Reduce spacing for step 3 form specifically */
#signupStep .form-group {
  gap: 0.25rem;
}

/* Phone input container styles */
.phone-input-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  transition: var(--transition);
}

.phone-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

/* Password input wrapper styles */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.password-toggle i {
  width: 18px;
  height: 18px;
}

.password-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.country-code {
  padding: 0.875rem 0.75rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  flex-shrink: 0;
}

.phone-input {
  border: none !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  box-shadow: none !important;
  flex: 1;
}

.phone-input:focus {
  outline: none;
  box-shadow: none !important;
}

/* Country code dropdown styles */
.country-code-dropdown {
  position: relative;
  min-width: 80px;
  max-width: 90px;
  border: none !important;
  flex-shrink: 0;
}

.country-code-dropdown .dropdown-trigger {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  padding: 0.875rem 0.5rem;
  font-size: 0.85rem;
  min-height: auto;
  justify-content: center;
}

.country-code-dropdown .dropdown-value {
  text-align: center;
  font-weight: 500;
}

.country-code-dropdown .dropdown-icon {
  width: 14px;
  height: 14px;
  margin-left: 0.25rem;
}

.country-code-dropdown .dropdown-trigger:hover,
.country-code-dropdown .dropdown-trigger:focus {
  border-color: var(--border);
  border-right-color: var(--border);
  box-shadow: none;
}

.country-code-dropdown .dropdown-menu {
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  width: max-content;
  left: 0;
}

.country-code-dropdown .dropdown-item {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Custom dropdown styles */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.dropdown-trigger:hover {
  border-color: var(--primary);
}

.dropdown-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.dropdown-value {
  flex: 1;
  text-align: left;
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px var(--shadow);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 2px;
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--primary);
}

.dropdown-item.selected {
  background: rgba(253, 185, 19, 0.1);
  color: var(--primary);
  font-weight: 500;
}

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

.form-input,
.form-select {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.dark-mode .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* === Submit Button === */
.signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
  letter-spacing: 0.025em;
}

.signup-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 185, 19, 0.3);
}

.signup-btn:active {
  transform: translateY(0);
}

.signup-btn i {
  width: 18px;
  height: 18px;
}

/* === Terms === */
.form-terms {
  text-align: center;
  margin-top: 1rem;
}

.form-terms p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

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

/* === Footer === */
.signup-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.signup-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Footer links layout: single line on desktop */
.signup-footer .footer-link-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.signup-footer p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  flex-shrink: 0;
}

.signup-footer .footer-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.signup-footer .linkedin-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.signup-footer .footer-link:hover .linkedin-logo {
  opacity: 0.8;
}

/* === Form Validation === */
.form-input:invalid {
  border-color: #ef4444;
}

.form-input:valid {
  border-color: #10b981;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  color: #10b981;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* === Loading State === */
.signup-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.signup-btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

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

/* === Multi-Step Flow === */
.hidden {
  display: none !important;
}

/* === Progress Indicator === */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 3rem 0;
  padding: 0 2rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.progress-step.active .step-number {
  background: var(--primary);
  color: #000;
}

.progress-step.active .step-label {
  color: var(--text-primary);
}

.progress-step.completed .step-number {
  background: var(--primary);
  color: #000;
}

.progress-step.completed .step-label {
  color: var(--text-primary);
}

.progress-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 1rem;
  transition: var(--transition);
}

.progress-line.completed {
  background: var(--primary);
}

/* === OTP Input Styles === */
.otp-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-primary);
  transition: var(--transition);
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.otp-input.filled {
  border-color: var(--primary);
  background: rgba(253, 185, 19, 0.1);
}

.otp-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* === Timer Styles === */
.timer-container {
  text-align: center;
  margin: 1rem 0;
}

.timer-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

#timer {
  font-weight: 600;
  color: var(--primary);
}

.resend-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.resend-btn:hover {
  background: var(--primary);
  color: #000;
}

/* === Edit Email Button === */
.edit-email-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  margin: 0.5rem auto 0 auto;
}

.edit-email-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.edit-email-btn i {
  width: 14px;
  height: 14px;
}

/* === Step Transitions === */
.signup-form-container {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateX(0);
}

.signup-form-container.hidden {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
}

.signup-form-container.fade-in {
  opacity: 1;
  transform: translateX(0);
  animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-form-container.fade-out {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideOutToLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutToLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-30px);
  }
}

/* Progress indicator transitions */
.progress-step {
  transition: all 0.3s ease-in-out;
}

.progress-line {
  transition: all 0.3s ease-in-out;
}

/* Form elements transitions */
.form-group {
  transition: all 0.3s ease-in-out;
}

.form-input, .form-select {
  transition: all 0.2s ease-in-out;
}

.form-input:focus, .form-select:focus {
  transform: scale(1.02);
}

.signup-btn {
  transition: all 0.3s ease-in-out;
}

.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* OTP inputs transitions */
.otp-input {
  transition: all 0.2s ease-in-out;
}

.otp-input:focus {
  transform: scale(1.1);
}

.otp-input.filled {
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* === Success/Error Messages === */
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
  transform: translateX(0);
  opacity: 1;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

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

/* === Disabled Button === */
.signup-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .signup-main {
    padding: 1rem;
  }
  
  .signup-form-container {
    padding: 1.5rem;
  }
  
  .signup-title {
    font-size: 1.75rem;
  }
  
  .signup-subtitle {
    font-size: 1rem;
  }
  
  .signup-header {
    padding: 1rem;
  }
  
  .signup-footer {
    padding: 1.5rem 1rem;
  }
  
  .signup-footer-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 1rem;
  }
  
  .signup-footer-content > p,
  .signup-footer-content > div:first-child {
    order: 2;
    width: 100%;
  }
  
  .signup-footer-content > .footer-links,
  .signup-footer-content > .footer-link-container {
    order: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
  }

  /* Hide bullet separators on mobile; links stacked vertically */
  .signup-footer .mx-2 {
    display: none;
  }
  
  .signup-footer .footer-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    color: var(--muted-foreground);
    text-decoration: none;
  }
  
  .signup-footer .footer-link:hover {
    background-color: var(--muted);
    color: var(--foreground);
  }
  
  .signup-footer .mx-2 {
    margin: 0 0.25rem;
  }
  
  .signup-footer p {
    font-size: 0.8rem;
  }
  
  .progress-indicator {
    margin: 1.5rem 0 2rem 0;
    padding: 0 1rem;
  }
  
  .progress-line {
    width: 40px;
    margin: 0 0.5rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .signup-container {
    max-width: 100%;
  }
  
  .signup-form-container {
    padding: 1rem;
  }
  
  .form-icon {
    width: 50px;
    height: 50px;
  }
  
  .form-icon i {
    width: 24px;
    height: 24px;
  }
  
  .form-title {
    font-size: 1.25rem;
  }
  
  .signup-footer {
    padding: 1.25rem 0.75rem;
  }
  
  .signup-footer-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 0.75rem;
  }
  
  .signup-footer-content > .footer-links,
  .signup-footer-content > .footer-link-container {
    gap: 0.25rem;
  }
  
  .signup-footer .footer-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.375rem;
  }
  
  .signup-footer .mx-2 {
    margin: 0 0.125rem;
    font-size: 0.7rem;
  }
  
  .signup-footer p {
    font-size: 0.75rem;
  }
}

