/* Sarvam AI Brand Color Overrides */
/* Force override any remaining blue colors from Ory Elements */

/* Links and anchors */
a,
a:link,
a:visited,
[data-testid*="link"],
.ory-link {
  color: hsl(14, 70%, 50%) !important; /* Brand orange */
  font-family: "Matter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

a:hover,
a:active,
[data-testid*="link"]:hover,
.ory-link:hover {
  color: hsl(14, 80%, 45%) !important; /* Darker orange */
  font-family: "Matter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

/* Ory Elements button links (e.g., Forgot password) */
[class*="ory_elements__button_link"],
button[type="button"] a,
.ory-button-link {
  font-family: "Matter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

/* Required field indicators */
[aria-required="true"] + label::after,
label abbr[title="required"],
label .required,
.ory-required-indicator,
abbr[title*="required"] {
  color: hsl(4, 90%, 58%) !important; /* Red-orange */
}

/* Form labels with required markers */
label abbr {
  color: hsl(4, 90%, 58%) !important;
}

/* Accent colors (buttons, links, focus states) */
[data-accent],
.ory-accent,
button[data-accent] {
  color: hsl(14, 70%, 50%) !important;
  background-color: hsl(14, 70%, 50%) !important;
}

/* Focus states */
*:focus,
input:focus,
button:focus,
a:focus {
  outline-color: hsl(14, 70%, 50%) !important;
  border-color: hsl(14, 70%, 50%) !important;
}

/* Override any Ory theme CSS variables */
:root {
  --ory-theme-accent-def: hsl(14, 70%, 50%) !important;
  --ory-theme-accent-muted: hsl(14, 70%, 60%) !important;
  --ory-theme-accent-emphasis: hsl(14, 80%, 45%) !important;
  --ory-theme-accent-disabled: hsl(14, 20%, 70%) !important;
  --ory-theme-accent-subtle: hsl(14, 70%, 95%) !important;

  --ory-theme-foreground-def: hsl(0, 0%, 20%) !important;
  --ory-theme-foreground-muted: hsl(0, 0%, 20%, 0.7) !important;
  --ory-theme-foreground-subtle: hsl(0, 0%, 20%, 0.5) !important;
  --ory-theme-foreground-disabled: hsl(0, 0%, 20%, 0.4) !important;

  --ory-theme-error-def: hsl(4, 90%, 58%) !important;
  --ory-theme-error-emphasis: hsl(4, 90%, 50%) !important;
}

/* Remove gap from Ory Elements grid */
.ory_elements__grid_gap_32__roeg5j7 {
  gap: 0 !important;
}

/* Remove card outer shell styling */
.ory_elements__card__1t5ly153,
.ory_elements__card__1t5ly150,
.ory_elements__card_size_default__1t5ly154 {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
