/* Modern Sign Up Page - Claude Style with Orange Accent */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #1a1a1a;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.signup-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Form Section */
.signup-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  max-width: 600px;
  background: #1a1a1a;
  position: relative;
}

.signup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.logo {
  font-size: 28px;
  font-weight: 600;
  color: #ff9500;
  letter-spacing: -0.5px;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-link span {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.login-link .button {
  padding: 8px 20px;
  font-size: 14px;
  background: transparent;
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.login-link .button:hover {
  background: rgba(255, 149, 0, 0.1);
  border-color: #ff9500;
}

.signup-form-section h2 {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

/* Form Styling */
#signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

#signup-form input[type="text"],
#signup-form input[type="email"],
#signup-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

#signup-form input::placeholder {
  color: #666;
}

#signup-form input:focus {
  background: #2f2f2f;
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

#signup-form input:hover:not(:focus) {
  border-color: #4a4a4a;
}

/* Checkbox Styling */
.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #999;
  user-select: none;
}

.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #ff9500;
  cursor: pointer;
}

.checkbox:hover {
  color: #ccc;
}

/* Submit Button */
#signup-form button[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  font-family: inherit;
  letter-spacing: 0.3px;
}

#signup-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff8000 0%, #ff9500 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
}

#signup-form button[type="submit"]:active {
  transform: translateY(0);
}

#signup-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.signup-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* Image Section */
.signup-image-section {
  flex: 1;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.signup-image-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 149, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 149, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.signup-image-section img {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

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

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 149, 0, 0.2);
  border-top-color: #ff9500;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Error Modal */
#error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.3s ease;
}

#error-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.error-modal-content {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

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

#error-modal-message {
  display: block;
  color: #ff4757;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

#close-error-modal {
  width: 100%;
  padding: 12px 24px;
  background: #3a3a3a;
  color: #ffffff;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

#close-error-modal:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .signup-form-section {
    padding: 60px 60px;
  }
  
  .signup-image-section {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .signup-container {
    flex-direction: column;
  }
  
  .signup-form-section {
    max-width: 100%;
    padding: 40px 32px;
  }
  
  .signup-image-section {
    min-height: 300px;
    padding: 40px 32px;
  }
  
  .signup-header {
    margin-bottom: 32px;
  }
  
  .signup-form-section h2 {
    font-size: 28px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .signup-form-section {
    padding: 32px 24px;
  }
  
  .signup-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .login-link {
    width: 100%;
    justify-content: space-between;
  }
  
  .signup-form-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .signup-image-section {
    min-height: 250px;
    padding: 32px 24px;
  }
  
  .error-modal-content {
    padding: 24px;
  }
  
  .form-row {
    gap: 12px;
  }
  
  #signup-form {
    gap: 12px;
  }
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid #ff9500;
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}