:root {
  --primary-color: #1e40af;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --light-blue: #eff6ff;
  --dark-blue: #1e3a8a;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  min-height: 100vh;
}

.register-container {
  max-width: 600px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.loading-spinner {
  display: none;
}

.role-toggle {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 8px;
}

.role-option {
  flex: 1;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.role-option.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.seller-section {
  border: 2px dashed #e2e8f0;
  border-radius: 10px;
  padding: 25px;
  background-color: #f8f9fa;
  display: none;
  animation: fadeIn 0.3s ease;
}

.seller-section.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background-color: var(--light-blue);
}

.file-upload-area.dragover {
  border-color: var(--primary-color);
  background-color: var(--light-blue);
}

.file-upload-area.has-file {
  border-color: #28a745;
  background-color: #f8fff8;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 5px;
  transition: all 0.3s ease;
  background-color: #e9ecef;
}

.strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-weak {
  background-color: #dc3545;
  width: 25%;
}
.strength-fair {
  background-color: #fd7e14;
  width: 50%;
}
.strength-good {
  background-color: #ffc107;
  width: 75%;
}
.strength-strong {
  background-color: #198754;
  width: 100%;
}

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #e8f5e8;
  border-radius: 6px;
  font-size: 0.9rem;
}

.remove-file {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0;
}

.section-divider {
  border-top: 2px solid #e2e8f0;
  margin: 30px 0;
  position: relative;
}

.section-divider::before {
  content: attr(data-title);
  position: absolute;
  top: -12px;
  left: 20px;
  background: white;
  padding: 0 15px;
  color: #6c757d;
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .register-container {
    margin: 0 15px;
  }

  .role-option {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
