/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Chrome Autofill Override
 *
 * Chrome autofill turns input backgrounds cold blue (rgb(232, 240, 254))
 * which clashes with the warm palette. These rules must live here rather
 * than in the Tailwind source because Tailwind v4 (Lightning CSS) strips
 * :-webkit-autofill selectors during compilation.
 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #FFF7ED inset !important;
  -webkit-text-fill-color: #1c1917 !important;
  caret-color: #1c1917;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) input:-webkit-autofill,
  html:not(.light) input:-webkit-autofill:hover,
  html:not(.light) input:-webkit-autofill:focus,
  html:not(.light) .input:-webkit-autofill,
  html:not(.light) .input:-webkit-autofill:hover,
  html:not(.light) .input:-webkit-autofill:focus,
  html:not(.light) .auth-input:-webkit-autofill,
  html:not(.light) .auth-input:-webkit-autofill:hover,
  html:not(.light) .auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #292524 inset !important;
    -webkit-text-fill-color: #fafaf9 !important;
    caret-color: #fafaf9;
  }
}

html.dark input:-webkit-autofill,
html.dark input:-webkit-autofill:hover,
html.dark input:-webkit-autofill:focus,
html.dark .input:-webkit-autofill,
html.dark .input:-webkit-autofill:hover,
html.dark .input:-webkit-autofill:focus,
html.dark .auth-input:-webkit-autofill,
html.dark .auth-input:-webkit-autofill:hover,
html.dark .auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #292524 inset !important;
  -webkit-text-fill-color: #fafaf9 !important;
  caret-color: #fafaf9;
}
