/* ==========================================================================
   HB TALK - AUTHENTICATION & ONBOARDING STYLES (auth.css)
   ========================================================================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background-color: var(--bg-surface);
}

/* Left Brand Showcase Column */
.auth-sidebar {
  flex: 1;
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  color: #ffffff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-sidebar::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.auth-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  z-index: 2;
}

.auth-sidebar-brand img, .auth-sidebar-brand svg {
  height: 40px;
}

.auth-sidebar-content {
  max-width: 460px;
  z-index: 2;
  margin: 40px 0;
}

.auth-sidebar-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.auth-sidebar-title {
  font-size: 2.3rem;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.auth-sidebar-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Testimonial Snippet inside Auth Sidebar */
.auth-quote-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.auth-quote-card p {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 14px;
}

.auth-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-quote-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.auth-quote-author h6 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.auth-quote-author span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.auth-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  z-index: 2;
}

/* Right Form Column */
.auth-main {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  background-color: var(--bg-surface);
  position: relative;
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Google OAuth Button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
}

.btn-google:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-subtle);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 12px;
}

/* Form Groups & Controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 5;
}

.form-icon svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
  stroke-width: 2;
  display: block;
  transition: stroke 0.2s ease;
}

.form-control-wrapper:focus-within .form-icon {
  color: var(--primary);
}

.form-control-wrapper:focus-within .form-icon svg {
  stroke: var(--primary);
}

.form-control-wrapper .form-input,
.form-control-wrapper input.form-input,
.form-control-wrapper input[type="text"].form-input,
.form-control-wrapper input[type="email"].form-input,
.form-control-wrapper input[type="password"].form-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px 12px 48px !important;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

[data-theme="dark"] .form-input,
body.dark .form-input {
  border-color: #334155;
  background-color: #1e293b;
  color: #f8fafc;
}

[data-theme="dark"] .form-input:focus,
body.dark .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.form-input.no-icon {
  padding-left: 16px;
}

/* ==========================================================================
   HB COUNTRY PICKER COMPONENT STYLES
   ========================================================================== */
.hb-country-picker-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.hb-country-selected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.hb-country-selected-box:hover {
  border-color: #94a3b8;
}

.hb-country-selected-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

[data-theme="dark"] .hb-country-selected-box,
body.dark .hb-country-selected-box {
  border-color: #334155;
  background-color: #1e293b;
  color: #f8fafc;
}

.hb-selected-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.hb-country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.hb-country-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-country-code-pill {
  font-size: 0.75rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.hb-dropdown-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hb-country-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInDown 0.18s ease-out;
}

[data-theme="dark"] .hb-country-dropdown-menu,
body.dark .hb-country-dropdown-menu {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hb-country-dropdown-menu.open {
  display: flex;
}

.hb-country-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.hb-country-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
}

.hb-country-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}

.hb-country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hb-country-option:hover {
  background-color: var(--primary-light);
}

.hb-country-option.selected {
  background-color: var(--primary-light);
  font-weight: 700;
}

.hb-country-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-main);
}

.hb-country-dial {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hb-country-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

.form-control-wrapper input[type="password"].form-input {
  padding-right: 46px !important;
}

/* ==========================================================================
   6-DIGIT EMAIL OTP VERIFICATION STYLES
   ========================================================================== */
.otp-inputs-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 28px 0;
}

.otp-digit-input {
  width: 54px;
  height: 62px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  outline: none;
  transition: var(--transition);
}

.otp-digit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  transform: translateY(-2px);
}

[data-theme="dark"] .otp-digit-input,
body.dark .otp-digit-input {
  background: #1e293b;
  border-color: #334155;
  color: #818cf8;
}

@media (max-width: 480px) {
  .otp-digit-input {
    width: 44px;
    height: 52px;
    font-size: 1.4rem;
  }
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
}

.form-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
}

.auth-bottom-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-bottom-switch a {
  font-weight: 600;
  color: var(--primary);
}

/* Privacy micro badge */
.auth-privacy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 20px;
}

/* Auth Alerts (Error & Success states) */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
}

.auth-alert.show {
  display: flex;
}

.auth-alert-danger {
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.auth-alert-success {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

/* ==========================================================================
   Onboarding Flow Wizard
   ========================================================================== */
.onboarding-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px;
}

.onboarding-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.onboarding-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  cursor: pointer;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.onboarding-step-indicator.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.onboarding-step-indicator.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.onboarding-step-indicator.active .step-label {
  color: var(--primary);
}

.onboarding-progress-line {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.onboarding-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 25%;
  transition: width 0.3s ease;
}

/* Onboarding Step Cards & Selections */
.onboarding-step-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.onboarding-step-pane.active {
  display: block;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.select-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.select-card {
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.select-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.select-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}

.select-card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.select-card h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.select-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Interest tags pill selector */
.interest-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}

.interest-tag-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.interest-tag-pill:hover {
  border-color: var(--primary);
}

.interest-tag-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Profile Preview in Onboarding */
.onboarding-profile-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
