/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* Main Container */
.signup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  width: 100%;
  min-height: 90vh;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.6s ease-out;
}

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

/* Left Side - Branding */
.signup-left {
  background: linear-gradient(135deg, #05305c 0%, #0a4a8a 50%, #05305c 100%);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.signup-left::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(239, 146, 39, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.signup-left::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(250, 188, 46, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.signup-branding-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.signup-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.signup-brand-logo {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.welcome-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 50px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 450px;
  margin: 0 auto 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef9227 0%, #fabc2e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.feature-text {
  text-align: left;
}

.feature-text h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Stats Showcase */
.stats-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 450px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 25px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-item h3 {
  color: #fabc2e;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
}

/* Right Side - Signup Form */
.signup-right {
  padding: 60px 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  overflow-y: auto;
}

.signup-form-container {
  width: 100%;
  max-width: 520px;
}

.form-header {
  margin-bottom: 35px;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.form-header h2 {
  color: #05305c;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.form-header p {
  color: #666666;
  font-size: 16px;
}

/* Step Progress Indicator */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.step.active .step-circle {
  background: linear-gradient(135deg, #ef9227 0%, #fabc2e 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 146, 39, 0.4);
  transform: scale(1.1);
}

.step.completed .step-circle {
  background: #05305c;
  color: #ffffff;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: #999999;
  text-align: center;
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: #ef9227;
}

.step.completed .step-label {
  color: #05305c;
}

.step-line {
  height: 3px;
  background: #e0e0e0;
  flex: 1;
  margin: 0 -10px;
  margin-top: -25px;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease;
}

.step.completed ~ .step-line,
.step.active ~ .step-line {
  background: #05305c;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeInStep 0.5s ease-out;
}

.form-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Styles */
.signup-form {
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.optional {
  color: #999999;
  font-weight: 400;
  font-size: 13px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* Required indicator */
.form-group label .required {
  color: #e74c3c;
  font-weight: 700;
  margin-left: 2px;
  font-size: 15px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: #999999;
  pointer-events: none;
  z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  color: #333333;
  background: #f8f9fa;
  transition: all 0.3s ease;
  outline: none;
}

.input-wrapper select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23999999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
  padding-right: 45px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: #ef9227;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 146, 39, 0.1);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: #ef9227;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 146, 39, 0.1);
}

/* Input Validation Error States */
.input-wrapper.error input,
.input-wrapper.error select,
.country-selected.error {
  border-color: #f44336 !important;
  background: #fff5f5 !important;
  animation: shake 0.5s ease-in-out;
}

.input-wrapper.error .input-icon {
  fill: #f44336;
}

.error-icon-indicator {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #f44336;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
}

.input-wrapper.error .error-icon-indicator {
  display: flex;
}

.country-select-wrapper svg {
  bottom: 17px;
}

.country-select-wrapper .error-icon-indicator {
  right: 16px;
  top: 26px;
}

.country-select-wrapper.error .error-icon-indicator {
  display: flex;
}

.country-select-wrapper.error .country-selected {
  border-color: #f44336 !important;
  background: #fff5f5 !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateY(-50%) translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateY(-50%) translateX(5px);
  }
}

.toggle-password {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.toggle-password:hover {
  opacity: 0.7;
}

.eye-icon {
  width: 22px;
  height: 22px;
  fill: #999999;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  display: none; /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-strength.visible {
  display: block;
  opacity: 1;
}

.strength-meter {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-meter-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 12px;
  color: #666666;
}

/* Password Strength Colors */
.strength-weak {
  background: #f44336;
  width: 33%;
}

.strength-medium {
  background: #ff9800;
  width: 66%;
}

.strength-strong {
  background: #4caf50;
  width: 100%;
}

/* Custom Country Dropdown */
.country-select-wrapper {
  position: relative;
}

.country-select {
  position: relative;
  width: 100%;
}

.country-selected {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  color: #333333;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.country-selected:hover {
  border-color: #ef9227;
}

.country-selected.active {
  border-color: #ef9227;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 146, 39, 0.1);
}

.country-selected .placeholder {
  color: #999999;
}

.country-selected .flag-emoji {
  font-size: 20px;
  line-height: 1;
}

.country-selected .country-name {
  color: #333333;
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow: hidden;
  z-index: 1000;
  display: none;
}

.country-dropdown.active {
  display: block;
  animation: dropdownSlide 0.3s ease-out;
}

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

.country-search-wrapper {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.country-search-wrapper .search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #999999;
  pointer-events: none;
}

.country-search {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333333;
  background: #f8f9fa;
  outline: none;
  transition: all 0.3s ease;
}

.country-search:focus {
  border-color: #ef9227;
  background: #ffffff;
}

.country-list {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
}

.country-list::-webkit-scrollbar {
  width: 8px;
}

.country-list::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

.country-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  color: #333333;
  font-size: 15px;
}

.country-option:hover {
  background: #f8f9fa;
}

.country-option.selected {
  background: #fff3e6;
  color: #ef9227;
  font-weight: 600;
}

.country-option .flag-emoji {
  font-size: 22px;
  line-height: 1;
  min-width: 28px;
  text-align: center;
}

.country-option .country-name {
  flex: 1;
}

.country-option.hidden {
  display: none;
}

/* Checkbox Group */
.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #f8f9fa;
  margin-top: 2px;
}

.checkbox-label input:checked ~ .checkmark {
  background: linear-gradient(135deg, #ef9227 0%, #fabc2e 100%);
  border-color: #ef9227;
}

.checkmark::after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark::after {
  display: block;
}

.label-text {
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
}

.label-text .link {
  color: #ef9227;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.label-text .link:hover {
  color: #d67f1e;
}

/* Form Navigation Buttons */
.form-navigation {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.next-btn,
.prev-btn,
.submit-btn {
  flex: 1;
  padding: 15px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.next-btn,
.submit-btn {
  background: linear-gradient(135deg, #ef9227 0%, #fabc2e 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(239, 146, 39, 0.3);
}

.next-btn:hover,
.submit-btn:hover {
  box-shadow: 0 8px 28px rgba(239, 146, 39, 0.4);
}

.prev-btn {
  background: #f8f9fa;
  color: #05305c;
  border: 2px solid #e0e0e0;
}

.prev-btn:hover {
  background: #e9ecef;
  border-color: #d0d0d0;
}

.next-btn svg,
.prev-btn svg,
.submit-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.submit-btn {
  background: linear-gradient(135deg, #05305c 0%, #0a4a8a 100%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  box-shadow: 0 8px 28px rgba(5, 48, 92, 0.4);
}

/* Signup Button - Keep for backward compatibility */
.signup-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ef9227 0%, #fabc2e 100%);
  color: #05305c;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(239, 146, 39, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Form Divider */
.form-divider {
  display: flex;
  align-items: center;
  margin: 30px 0 25px;
  color: #999999;
  font-size: 14px;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.form-divider span {
  padding: 0 15px;
}

/* Social Signup */
.social-signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.social-btn {
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Login Prompt */
.login-prompt {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.login-prompt p {
  color: #666666;
  font-size: 15px;
}

.login-prompt a {
  color: #ef9227;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-prompt a:hover {
  color: #d67f1e;
}

/* Back Home Link */
.back-home {
  text-align: center;
  margin-top: 20px;
}

.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666666;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-home a:hover {
  color: #ef9227;
  transform: translateX(-3px);
}

.back-home svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .signup-container {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .signup-left {
    padding: 50px 40px;
  }

  .welcome-title {
    font-size: 36px;
  }

  .stats-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .signup-container {
    border-radius: 16px;
  }

  .signup-left {
    padding: 40px 30px;
  }

  .signup-right {
    padding: 40px 30px;
  }

  .signup-brand-logo {
    max-width: 220px;
  }

  .welcome-title {
    font-size: 32px;
  }

  .welcome-subtitle {
    font-size: 16px;
  }

  .form-header h2 {
    font-size: 28px;
  }

  .features-showcase {
    gap: 15px;
  }

  .feature-item {
    padding: 16px 20px;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
  }

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

  .social-signup {
    grid-template-columns: 1fr;
  }

  .stats-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  .stat-item p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .signup-left {
    padding: 30px 20px;
  }

  .signup-right {
    padding: 30px 20px;
  }

  .signup-brand-logo {
    max-width: 180px;
  }

  .welcome-title {
    font-size: 28px;
  }

  .welcome-subtitle {
    font-size: 15px;
    margin-bottom: 35px;
  }

  .form-header {
    margin-bottom: 30px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .form-header p {
    font-size: 14px;
  }

  .step-progress {
    padding: 0 10px;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .step-label {
    font-size: 11px;
  }

  .feature-item {
    padding: 14px 18px;
  }

  .feature-text h4 {
    font-size: 15px;
  }

  .feature-text p {
    font-size: 13px;
  }

  .input-wrapper input,
  .country-selected {
    padding: 12px 14px 12px 44px;
    font-size: 14px;
  }

  .next-btn,
  .prev-btn,
  .submit-btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .stats-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 20px 15px;
  }

  .stat-item h3 {
    font-size: 26px;
  }
}
