/* ==========================================================================
   JobAlerts VIP - Tactile Modernism & Vibrant Glassmorphism Design System
   Refined from stitch_jobalerts_vip_portal design specification
   ========================================================================== */

:root {
  color-scheme: light;
  --brand-emerald: #10b981;
  --brand-emerald-dark: #059669;
  --brand-mint-light: #ecfdf5;
  --brand-sky: #0284c7;
  --brand-sky-light: #f0f9ff;
  --brand-navy: #0f172a;
  --brand-slate: #334155;
  --brand-slate-subtle: #64748b;
  --brand-border: #e2e8f0;
  --brand-surface: #fafcfa;
  --brand-card: #ffffff;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fafcfa;
  color: #334155;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(16, 185, 129, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(2, 132, 199, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* Headings Typography */
h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Gradient Utilities */
.gradient-hero-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(2, 132, 199, 0.12) 100%);
}

.gradient-accent-text {
  background: linear-gradient(135deg, #059669 0%, #0284c7 60%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-glow {
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.25);
}

.shadow-emerald-glow {
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 4.5s ease-in-out 1.8s infinite;
}

/* Range Slider Controls */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 9999px;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 9999px;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #10b981;
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

input[type=range]::-moz-range-track {
  height: 8px;
  border-radius: 9999px;
  cursor: pointer;
  background: #e2e8f0;
}

input[type=range]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #10b981;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#range-hours, #hoursSlider {
  background: linear-gradient(to right, #10b981 0%, #10b981 33%, #e2e8f0 33%, #e2e8f0 100%);
  border-radius: 9999px;
}

#range-rate, #rateSlider {
  background: linear-gradient(to right, #0284c7 0%, #0284c7 20%, #e2e8f0 20%, #e2e8f0 100%);
  border-radius: 9999px;
}

/* Modal Dialog Glassmorphic Backdrops */
dialog.modal {
  background-color: transparent;
}

dialog.modal::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

dialog.modal[open] {
  animation: modalPop 0.2s ease-out forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast Styling */
#toastContainer {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
  pointer-events: none;
}

#toastContainer > * {
  pointer-events: auto;
}

/* Company Grid Transitions */
.company-card {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.company-card:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Clerk Authentication UI - Spacious & Modern Styling System
   ========================================================================== */

/* Fix modal backdrop */
.cl-modalBackdrop {
  background-color: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  z-index: 99999 !important;
}

.cl-modalContent {
  width: 100% !important;
  max-width: 480px !important;
  margin: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.cl-rootBox {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
}

/* Outer Card Container: unified 480px card with premium shadow */
.cl-cardBox {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border-radius: 1.5rem !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Inner Card: transparent, full-width, single padding (no double padding) */
.cl-card {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 2.25rem 2.25rem 1.25rem 2.25rem !important;
  box-sizing: border-box !important;
}

/* Header: centered, bold modern typography */
.cl-header {
  text-align: center !important;
  margin-bottom: 1.5rem !important;
}

.cl-headerTitle {
  font-family: 'Outfit', -apple-system, sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  line-height: 1.25 !important;
}

.cl-headerSubtitle {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 0.875rem !important;
  color: #64748b !important;
  margin-top: 0.35rem !important;
  line-height: 1.4 !important;
}

/* Form field containers: generous breathing room */
.cl-formFieldRow,
.cl-formField {
  margin-bottom: 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

/* Labels: crisp, bold, dark slate */
.cl-formFieldLabel,
.cl-fieldLabel {
  font-family: 'Outfit', -apple-system, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: -0.01em !important;
}

/* Form inputs: eliminate cramped double-borders, add spacious 48px height, smooth rounded corners */
.cl-formFieldInputGroup {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative !important;
  width: 100% !important;
  border-radius: 0.875rem !important;
  display: flex !important;
  align-items: center !important;
}

.cl-formFieldInput,
.cl-input,
.cl-formFieldInputGroup input {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0.75rem 1rem !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 0.9375rem !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.875rem !important;
  outline: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
}

.cl-formFieldInput__password,
.cl-input__password,
input[type="password"],
.cl-formFieldInputGroup:has(.cl-formFieldInputShowPasswordButton) input {
  padding-right: 5.25rem !important; /* Leaves room for both the browser autofill key and the eye toggle */
}

.cl-formFieldInput:hover,
.cl-input:hover,
.cl-formFieldInputGroup input:hover {
  border-color: #94a3b8 !important;
}

.cl-formFieldInput:focus,
.cl-input:focus,
.cl-formFieldInput:focus-visible,
.cl-input:focus-visible,
.cl-formFieldInputGroup input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18) !important;
  outline: none !important;
}

/* Password helper text / rules: clean spacing and legible font */
.cl-formFieldSuccessText,
.cl-formFieldErrorText,
.cl-formFieldWarningText,
.cl-formFieldHintText,
.cl-formFieldInfoText,
.cl-formFieldRow p,
.cl-internal-1bz9zj9 + p {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  margin-top: 0.45rem !important;
  color: #64748b !important;
}

/* Password eye button: shifted left to 44px so it never blocks the browser/macOS Keychain autofill key */
.cl-formFieldInputShowPasswordButton {
  position: absolute !important;
  right: 44px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 0.5rem !important;
  transition: all 0.15s ease !important;
  z-index: 2 !important;
}

.cl-formFieldInputShowPasswordButton:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.cl-formFieldInputShowPasswordButton svg {
  pointer-events: none !important;
  width: 18px !important;
  height: 18px !important;
}

/* Primary Action Buttons (Continue, Sign In, etc.): full-width, vibrant emerald gradient */
.cl-formButtonPrimary {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
  border: none !important;
  border-radius: 0.875rem !important;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 1.25rem !important;
}

.cl-formButtonPrimary:hover {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%) !important;
  box-shadow: 0 6px 20px 0 rgba(5, 150, 105, 0.45) !important;
  transform: translateY(-1px) !important;
}

.cl-formButtonPrimary:active {
  transform: translateY(0px) !important;
}

/* Social Buttons (Google OAuth, etc.): spacious, modern pill */
.cl-socialButtonsBlockButton {
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 0.875rem !important;
  border: 1.5px solid #e2e8f0 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
}

.cl-socialButtonsBlockButton:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* Divider */
.cl-dividerLine {
  background-color: #e2e8f0 !important;
}

.cl-dividerText {
  color: #94a3b8 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Footer: seamless bottom section of the card */
.cl-footer {
  width: 100% !important;
  background: #f8fafc !important;
  border-top: 1px solid #f1f5f9 !important;
  padding: 1.25rem 2.25rem 1.5rem 2.25rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.cl-footerAction {
  padding: 0 0 0.5rem 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.cl-footerActionLink {
  color: #059669 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.cl-footerActionLink:hover {
  color: #047857 !important;
  text-decoration: underline !important;
}

/* Close button */
.cl-modalCloseButton {
  top: 1.25rem !important;
  right: 1.25rem !important;
  color: #94a3b8 !important;
  padding: 0.5rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.15s ease !important;
}

.cl-modalCloseButton:hover {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
}


