:root {
  --bg-color: #f8faff;
  --text-color: #333;
  --card-bg: #fff;
  --accent-primary: #c44bff;
  --accent-secondary: #ff629b;
  --border-color: #e1e5e9;
  --input-bg: #fff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 10px 40px rgba(196, 75, 255, 0.15);
}

body.dark, body.dark-mode {
  --bg-color: #0f0f1a;
  --text-color: #f5f5f5;
  --card-bg: #1a1a2a;
  --accent-primary: #ff629b;
  --accent-secondary: #c44bff;
  --border-color: #2d2d44;
  --input-bg: #1e1e2e;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 10px 40px rgba(255, 98, 155, 0.25);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  display: block;
  min-height: 100vh;
  margin: 0;
  transition: all 0.4s ease;
  position: relative;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(196, 75, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 98, 155, 0.03) 0%, transparent 50%);
  z-index: -1;
}

body.dark::before, body.dark-mode::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(196, 75, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 98, 155, 0.05) 0%, transparent 50%);
}

.signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  min-height: 80vh;
}

.signup-card {
  background: var(--card-bg);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  margin: 6rem 0;
}

.signup-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

.signup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 20px 20px 0 0;
}

/* Dark mode specific styles */
body.dark .signup-card, body.dark-mode .signup-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.logo-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
  transition: color 0.3s ease;
}

.logo-header h1 i {
  color: var(--accent-secondary);
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.subtitle {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.name-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-wrapper {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(196, 75, 255, 0.1);
  outline: none;
}

body.dark .input-group input:focus, body.dark-mode .input-group input:focus {
  box-shadow: 0 0 0 3px rgba(255, 98, 155, 0.2);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 3rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: var(--card-bg);
  padding: 0 0.5rem;
}

.input-group label {
  position: absolute;
  top: 1rem;
  left: 3rem;
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
  transition: all 0.3s ease;
  pointer-events: none;
  font-weight: 500;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-size: 1.1rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.input-group input:focus ~ .input-icon {
  opacity: 1;
  color: var(--accent-secondary);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  accent-color: var(--accent-primary);
  transform: scale(1.2);
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.btn {
  width: 100%;
  background: var(--accent-primary);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 98, 155, 0.3);
}

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

.btn i {
  margin-right: 0.5rem;
}

.btn-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.btn.loading .btn-text {
  opacity: 0;
}

.btn.loading .btn-loader {
  display: block;
}

.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--text-color);
  opacity: 0.5;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
  transition: background 0.3s ease;
}

.divider span {
  padding: 0 1rem;
}

.bottom-text {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: color 0.3s ease;
}

.bottom-text a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.bottom-text a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.bottom-text a i {
  margin-right: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .name-group {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .signup-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .logo-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .signup-card {
    padding: 1.5rem 1rem;
  }
  
  .input-group input {
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
  }
  
  .input-group label {
    left: 2.5rem;
  }
  
  .input-icon {
    left: 0.875rem;
  }
  
  .input-group input:focus + label,
  .input-group input:not(:placeholder-shown) + label {
    left: 2.5rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .signup-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}