/* Base Styles - Classic Black & White */
body {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  padding: 1rem;
  margin: 0;
}

/* Enhanced Signup Container - Monochrome Elegance */
.signup-container {
  background: #ffffff;
  backdrop-filter: blur(20px);
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 380px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.signup-container:hover {
  transform: translateY(-3px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 12px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Sophisticated Black & White Typography */
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #000000;
  letter-spacing: -0.025em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
}

/* Enhanced Monochrome Form Elements */
.form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  display: block;
}

.form-control {
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  font-weight: 500;
  color: #000000;
}

.form-control:focus {
  border-color: #000000;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.02);
  outline: none;
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Enhanced Monochrome Password Field */
.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-50%) scale(1.1);
}

/* Premium Black & White Buttons */
.btn-primary {
  background: #000000;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-weight: 600;
  width: 100%;
  font-size: 0.925rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.025em;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-outline-secondary {
  border: 2px solid #e5e5e5;
  color: #000000;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #000000;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Enhanced Referral Section */
.referral-section {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.referral-section:hover {
  background: rgba(248, 249, 250, 0.8);
  border-color: #e5e5e5;
}

.referral-text {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Classic Login Link */
.login-link {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.login-link:hover {
  color: #000000;
  transform: translateY(-1px);
}

.login-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #000000;
  transition: width 0.3s ease;
}

.login-link:hover::after {
  width: 100%;
}

/* Classic Black & White Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  font-size: 0.8rem;
  color: #666666;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e5e5, transparent);
  flex: 1;
}

.divider span {
  padding: 0 1rem;
  background: #ffffff;
  border-radius: 16px;
  position: relative;
}

/* Enhanced Monochrome Icons */
.google-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.btn-outline-secondary:hover .google-icon {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Classic Black & White SweetAlert */
.swal-confirm-black {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.swal-confirm-black:hover {
  background: #1a1a1a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 1.75rem;
}

/* Loading States */
.btn-primary:disabled {
  background: #666666;
  border-color: #666666;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-outline-secondary:disabled {
  border-color: #e5e5e5;
  color: #666666;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Terms and Conditions Section */
.terms-section {
  text-align: center;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: #666666;
  line-height: 1.4;
}

.terms-section a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.terms-section a:hover {
  color: #000000;
}

.terms-section a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -1px;
  left: 0;
  background: #000000;
  transition: width 0.3s ease;
}

.terms-section a:hover::after {
  width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .signup-container {
    padding: 1.5rem 1.25rem;
    margin: 0.5rem;
    border-radius: 12px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .form-control {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .btn-primary,
  .btn-outline-secondary {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .referral-section {
    padding: 0.75rem;
    margin: 1rem 0;
  }
}

/* Subtle Monochrome Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signup-container {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Focus Ring for Accessibility */
.form-control:focus,
.btn-primary:focus,
.btn-outline-secondary:focus,
.password-toggle:focus,
.login-link:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Subtle Pattern Background (Optional) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .form-control {
    border-width: 3px;
  }

  .btn-primary,
  .btn-outline-secondary {
    border-width: 3px;
  }

  .signup-container {
    border-width: 2px;
  }
}

/* Additional Signup-specific Enhancements */
.password-strength {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.strength-weak {
  color: #666666;
}
.strength-medium {
  color: #333333;
}
.strength-strong {
  color: #000000;
  font-weight: 600;
}

/* Checkbox Styling for Terms */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #333333;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  accent-color: #000000;
}

/* Success Message Styling */
.success-message {
  background: #f8f9fa;
  border: 2px solid #e5e5e5;
  color: #000000;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  margin: 1rem 0;
}

/* Error Message Styling */
.error-message {
  background: #f8f9fa;
  border: 2px solid #cccccc;
  color: #000000;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  margin: 1rem 0;
}
