/* Page styles for /register.html
 * Migrated from inline <style> block (Faz 5A — CSP style-src hardening).
 */

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

:root {
  --primary: #1e3a5f;
  --primary-dark: #0f2440;
  --secondary: #c8a951;
  --accent: #2d9f93;
  --accent-light: #4ecdc4;
  --danger: #e74c3c;
  --dark: #0f172a;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --gradient-medical: linear-gradient(135deg, #1e3a5f 0%, #2d9f93 100%);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--gradient-medical);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  padding: 2rem 0;
}

.bg-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 70%;
  top: 40%;
  animation-delay: 3s;
}

.particle:nth-child(3) {
  left: 30%;
  top: 60%;
  animation-delay: 6s;
}

.particle:nth-child(4) {
  left: 80%;
  top: 70%;
  animation-delay: 9s;
}

.particle:nth-child(5) {
  left: 50%;
  top: 30%;
  animation-delay: 12s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-30px) translateX(20px);
  }

  50% {
    transform: translateY(-60px) translateX(-20px);
  }

  75% {
    transform: translateY(-30px) translateX(20px);
  }
}

.container {
  width: 100%;
  max-width: 520px;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1;
}

.reg-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-medical);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.logo-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.logo-section h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-section p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.85rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.7rem 0.7rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 159, 147, 0.1);
}

.form-input.no-icon {
  padding-left: 0.7rem;
}

.form-select {
  width: 100%;
  padding: 0.7rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--white);
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 159, 147, 0.1);
}

.row {
  display: flex;
  gap: 0.75rem;
}

.row > .form-group {
  flex: 1;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.35rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--dark);
}

.radio-option input[type="radio"] {
  accent-color: var(--accent);
}

.btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-medical);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-google {
  background: #fff;
  color: var(--dark);
  border: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.btn-google:hover {
  border-color: var(--accent);
  background: #f8fffe;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  gap: 0.75rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  font-size: 0.8rem;
  color: var(--gray);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-group input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 0.8rem;
  color: var(--gray);
}

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

.text-center {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.text-center a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-center a:hover {
  text-decoration: underline;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.org-section {
  display: none;
}

.org-section.show {
  display: block;
}

#verifySection {
  display: none;
}

#verifySection.show {
  display: block;
}

#regForm.hidden {
  display: none;
}

.verify-code-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.verify-input {
  width: 100%;
  max-width: 280px;
  padding: 0.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 8px;
  font-family: "JetBrains Mono", monospace, "Inter";
}

.verify-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 159, 147, 0.1);
}

.success-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.success-section {
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.success-section.show {
  display: block;
}

.password-fields {
  transition: all 0.3s;
}

.password-fields.hidden {
  display: none;
}

.org-search {
  position: relative;
}

.org-search input {
  width: 100%;
  padding: 0.7rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
}

.org-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.org-dropdown {
  max-height: 200px;
  overflow-y: auto;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 4px;
  display: none;
  background: #fff;
}

.org-dropdown.show {
  display: block;
}

.org-item {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.org-item:hover {
  background: #f0fdfa;
}

.org-item .city {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Language Selector */
.lang-selector-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 0.8rem;
  color: #fff;
  transition: all 0.2s;
}

.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-code {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.lang-chevron {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1100;
  overflow: hidden;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--dark);
  transition: background 0.15s;
}

.lang-menu-item:hover {
  background: #f1f5f9;
}

.lang-menu-item.active {
  background: rgba(45, 159, 147, 0.08);
  color: var(--accent);
  font-weight: 600;
}

.lang-item-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-item-name {
  flex: 1;
}
    
