
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: background-color 0.4s ease;
}

[data-bs-theme="light"] body {
  background: linear-gradient(to bottom right, #f4ebff, #ffffff);
}

.navbar-crunevo {
  display: none;
}

[data-bs-theme="dark"] html,
[data-bs-theme="dark"] body {
  background: #000 !important;
  background-image: none !important;
}

.register-wrapper {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

[data-bs-theme="dark"] .register-wrapper {
  background: transparent !important;
}

.register-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 20px 0;
}

[data-bs-theme="dark"] .register-card {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.register-title {
  text-align: center;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 8px;
  color: #2c2c2c;
}

[data-bs-theme="dark"] .register-title {
  color: #fff;
}

.register-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

[data-bs-theme="dark"] .register-subtitle {
  color: #ccc;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.form-control,
.form-select,
.btn {
  transition: all 0.3s ease;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
}

.form-control,
.form-select {
  border: 2px solid #e1e5e9;
  margin-bottom: 16px;
}

.form-control:focus,
.form-select:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 0 0.2rem rgba(155, 89, 182, 0.25);
  outline: none;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1a1a1a;
  color: #fff;
  border: 2px solid #333;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: #9b59b6;
  background-color: #222;
}

[data-bs-theme="dark"] ::placeholder {
  color: #aaa;
}

.form-check {
  margin-bottom: 16px;
}

.form-check-input {
  margin-right: 8px;
}

.form-check-input:checked {
  background-color: #9b59b6;
  border-color: #9b59b6;
}

.form-check-label {
  font-weight: 500;
  cursor: pointer;
}

.btn-crunevo {
  background-color: #9b59b6;
  color: white;
  font-weight: 600;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  width: 100%;
  margin-top: 16px;
}

.btn-crunevo:hover {
  background-color: #7b3ea0;
  transform: translateY(-1px);
}

.legal-text {
  font-size: 12px;
  color: #666;
  margin-top: 16px;
  line-height: 1.4;
}

[data-bs-theme="dark"] .legal-text {
  color: #aaa;
}

.legal-text a {
  color: #6c63ff;
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

[data-bs-theme="dark"] .legal-text a {
  color: #d5c7ff;
}

.link-sm {
  font-size: 14px;
  color: #6c63ff;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 16px;
}

.link-sm:hover {
  text-decoration: underline;
}

[data-bs-theme="dark"] .link-sm {
  color: #d5c7ff;
}

.password-group {
  position: relative;
  margin-bottom: 16px;
}

.password-group input {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.theme-toggle-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  padding: 8px 12px;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1060;
  transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.access-links {
  margin-top: 30px;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.access-links a {
  text-decoration: none;
  color: #6c63ff;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.access-links a:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

[data-bs-theme="dark"] .access-links a {
  color: #d5c7ff;
  background: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="dark"] .access-links a:hover {
  background: rgba(213, 199, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .register-wrapper {
    padding: 10px;
  }

  .register-card {
    padding: 24px;
    margin: 10px 0;
    max-width: 100%;
  }

  .register-title {
    font-size: 24px;
  }

  .form-control,
  .form-select,
  .btn {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .row.g-2 {
    margin: 0;
  }

  .row.g-2 .col {
    padding: 0 4px;
  }

  .row.g-2 .col:first-child {
    padding-left: 0;
  }

  .row.g-2 .col:last-child {
    padding-right: 0;
  }

  .access-links {
    flex-direction: column;
    gap: 10px;
  }

  .access-links a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .register-card {
    padding: 20px;
  }

  .register-title {
    font-size: 22px;
  }

  .theme-toggle-btn {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
  }

  .row.g-2 .col-4 {
    margin-bottom: 8px;
  }
}

/* Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Focus states for accessibility */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.toggle-password:focus {
  outline: 2px solid #9b59b6;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .register-card {
    border: 3px solid #000;
  }
  
  [data-bs-theme="dark"] .register-card {
    border: 3px solid #fff;
  }
}

/* Gender radio buttons styling */
.d-flex.gap-3 {
  flex-wrap: wrap;
  gap: 16px !important;
}

.d-flex.gap-3 .form-check {
  margin-bottom: 8px;
}

/* Better spacing for form sections */
.mb-3 {
  margin-bottom: 20px !important;
}

/* Improved date selectors */
.row.g-2.mb-3 .col-4 .form-select {
  margin-bottom: 8px;
}

/* Terms checkbox styling */
.form-check.mb-3 {
  padding: 12px;
  background: rgba(108, 99, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

[data-bs-theme="dark"] .form-check.mb-3 {
  background: rgba(213, 199, 255, 0.05);
  border-color: rgba(213, 199, 255, 0.1);
}
