/* ─── Auth pages (login, register, complete_profile, choose_role,
       onboarding, profile) ─────────────────────────────────────────────────
   Loaded only by auth templates via {% block page_css %}. All brand
   colors come from brand-tokens.css (var(--brand-*)). */

/* Feature panel — the teal gradient column on the left of every auth page */
.auth-feature-panel {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.auth-feature-panel::before,
.auth-feature-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}
.auth-feature-panel::before {
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
}
.auth-feature-panel::after {
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

/* Google sign-in button (login page) */
.btn.google-btn {
  background: #fff;
  border: 2px solid #bdbdbd;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #333;
}
.btn.google-btn:hover {
  border-color: #4285f4;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
  transform: translateY(-1px);
}

/* Selectable card pattern (role / option / similar pickers) */
.role-card,
.option-card {
  border: 2px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--brand-surface);
}
.role-card { padding: 1.5rem; }
.option-card { padding: 1.25rem; }
.role-card:hover,
.option-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px var(--brand-primary-soft);
  transform: translateY(-2px);
}
.role-card.selected,
.option-card.selected {
  border-color: var(--brand-primary);
  background: rgba(0, 128, 128, 0.05);
}
.role-card input[type='radio'],
.option-card input[type='radio'] { display: none; }

.role-card .role-icon,
.option-card .option-icon {
  border-radius: 50%;
  background: var(--brand-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.role-card .role-icon { width: 60px; height: 60px; }
.option-card .option-icon { width: 50px; height: 50px; margin-bottom: 0.75rem; }
.role-card .role-icon i,
.option-card .option-icon i {
  color: var(--brand-primary);
}
.role-card .role-icon i { font-size: 1.75rem; }
.option-card .option-icon i { font-size: 1.5rem; }

.role-card h5,
.option-card h6 { font-weight: 600; }
.role-card h5 { margin-bottom: 0.5rem; }
.option-card h6 { margin-bottom: 0.25rem; }
.role-card p,
.option-card p {
  color: #6c757d;
  margin-bottom: 0;
}
.role-card p { font-size: 0.875rem; }
.option-card p { font-size: 0.8rem; }

.option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.option-card.disabled:hover {
  border-color: var(--brand-border);
  box-shadow: none;
  transform: none;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: #6c757d;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Onboarding / multi-step progress bar */
.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.progress-step .step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c757d;
}
.progress-step.active .step-circle,
.progress-step.completed .step-circle {
  background: var(--brand-primary);
  color: #fff;
}
.progress-step .step-label {
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 0.25rem;
}
.progress-step.active .step-label {
  color: var(--brand-primary);
  font-weight: 600;
}
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--brand-border);
  margin: 0 0.25rem;
  align-self: center;
  margin-bottom: 1rem;
}
.progress-line.completed { background: var(--brand-primary); }

/* Profile header (profile.html) — same gradient as auth feature panel */
.profile-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius: var(--brand-radius-sm);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.profile-avatar,
.profile-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
}
.profile-avatar { object-fit: cover; }
.profile-avatar-placeholder {
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* intl-tel-input + country-picker-wrapper (complete_profile, profile) */
.iti { width: 100%; }
.iti__flag-container { z-index: 1; }
.iti--separate-dial-code .iti__selected-flag {
  background-color: var(--brand-surface-alt);
  border-radius: 0.375rem 0 0 0.375rem;
}
.iti--separate-dial-code input { padding-left: 100px !important; }

.country-picker-wrapper { position: relative; }
.country-picker-wrapper .iti { width: 100%; }
.country-picker-wrapper .iti__flag-container {
  position: static;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.4375rem 0.875rem;
  border: 1px solid #d9dee3;
  border-radius: 0.375rem;
  background-color: #fff;
  cursor: pointer;
}
.country-picker-wrapper .iti__flag-container:hover {
  border-color: var(--brand-primary);
}
.country-picker-wrapper .iti__selected-flag {
  position: static;
  padding: 0;
  background: transparent !important;
  display: flex;
  align-items: center;
  width: 100%;
}
.country-picker-wrapper .iti__arrow { margin-left: auto; }
.country-picker-wrapper .country-name {
  margin-left: 8px;
  flex-grow: 1;
}
.country-picker-wrapper input { display: none !important; }
.country-picker-wrapper .iti__dial-code { display: none !important; }
