/*
 * Ardana Design System typography.
 * Source: vendor/ardana-design-system/src/styles/globals.css, which imports
 * @fontsource Inter 400/500/600 and Manrope 600/700. The woff2 files under
 * resources/fonts are copied from the same @fontsource packages.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/manrope-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/manrope-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --skelflo-background: #fafafa;
  --skelflo-foreground: #09090b;
  --skelflo-muted: #71717a;
  --skelflo-muted-soft: #a1a1aa;
  --skelflo-card: #ffffff;
  --skelflo-border: #e4e4e7;
  --skelflo-input: #e4e4e7;
  --skelflo-ring: #18181b;
  --skelflo-primary: #09090b;
  --skelflo-primary-foreground: #fafafa;
  --skelflo-destructive: #dc2626;
  --skelflo-radius: 0.875rem;
  --skelflo-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 24px 80px rgba(24, 24, 27, 0.06);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.skelflo-login-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(24, 24, 27, 0.06), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--skelflo-background) 100%);
  color: var(--skelflo-foreground);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skelflo-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.skelflo-login-shell {
  width: min(100%, 27rem);
}

.skelflo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.skelflo-logo {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--skelflo-border);
  border-radius: 0.875rem;
  background: var(--skelflo-primary);
  color: var(--skelflo-primary-foreground);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.14);
}

.skelflo-brand-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skelflo-card {
  border: 1px solid var(--skelflo-border);
  border-radius: calc(var(--skelflo-radius) + 0.25rem);
  background: color-mix(in srgb, var(--skelflo-card) 94%, transparent);
  box-shadow: var(--skelflo-shadow);
  overflow: hidden;
}

.skelflo-card-header,
.skelflo-card-content,
.skelflo-card-footer {
  padding: 1.5rem;
}

.skelflo-card-header {
  padding-bottom: 0.75rem;
  text-align: center;
}

.skelflo-card-content {
  padding-top: 0.75rem;
}

.skelflo-card-footer {
  border-top: 1px solid var(--skelflo-border);
  background: #fafafa;
  color: var(--skelflo-muted);
  font-size: 0.875rem;
  text-align: center;
}

.skelflo-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.skelflo-subtitle {
  margin: 0.5rem 0 0;
  color: var(--skelflo-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.skelflo-form {
  display: grid;
  gap: 1rem;
}

.skelflo-field {
  display: grid;
  gap: 0.5rem;
}

.skelflo-label {
  color: var(--skelflo-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.skelflo-input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--skelflo-input);
  border-radius: 0.625rem;
  background: #ffffff;
  color: var(--skelflo-foreground);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  padding: 0.625rem 0.75rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.skelflo-input::placeholder {
  color: var(--skelflo-muted-soft);
}

.skelflo-input:hover {
  border-color: #d4d4d8;
}

.skelflo-input:focus,
.skelflo-input:focus-visible {
  border-color: var(--skelflo-ring);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.12);
}

.skelflo-input[aria-invalid="true"] {
  border-color: var(--skelflo-destructive);
}

.skelflo-field-error,
.skelflo-message-error {
  color: var(--skelflo-destructive);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.skelflo-message {
  margin-bottom: 1rem;
  border: 1px solid var(--skelflo-border);
  border-radius: 0.75rem;
  background: #fafafa;
  color: var(--skelflo-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.75rem;
}

.skelflo-message-error {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.06);
}

.skelflo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.skelflo-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--skelflo-muted);
  cursor: pointer;
  font-size: 0.875rem;
}

.skelflo-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--skelflo-primary);
}

.skelflo-link {
  color: var(--skelflo-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.skelflo-link:hover,
.skelflo-link:focus-visible {
  color: #000000;
  text-decoration-color: currentColor;
}

.skelflo-link:focus-visible,
.skelflo-button:focus-visible,
.skelflo-idp-link:focus-visible {
  outline: 2px solid var(--skelflo-ring);
  outline-offset: 2px;
}

.skelflo-button {
  display: inline-flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--skelflo-primary);
  border-radius: 0.625rem;
  background: var(--skelflo-primary);
  color: var(--skelflo-primary-foreground);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.625rem 1rem;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.skelflo-button:hover {
  background: #18181b;
}

.skelflo-button:active {
  transform: translateY(1px);
}

.skelflo-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--skelflo-muted);
  font-size: 0.75rem;
}

.skelflo-divider::before,
.skelflo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--skelflo-border);
}

.skelflo-idp-list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skelflo-idp-link {
  display: inline-flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--skelflo-border);
  border-radius: 0.625rem;
  background: #ffffff;
  color: var(--skelflo-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.skelflo-idp-link:hover {
  border-color: #d4d4d8;
  background: #fafafa;
}

.skelflo-secondary-action {
  color: var(--skelflo-muted);
}

.skelflo-register-text {
  margin: 0;
}

/* Inherited Keycloak v2 pages (reset password, verification, OTP, and
   required actions) share this card but use PatternFly form classes. Apply
   the same native primitives rather than leaving those flows in stock styles. */
.skelflo-card input:not([type="checkbox"]):not([type="hidden"]),
.skelflo-card select,
.skelflo-card textarea,
.skelflo-card .pf-v5-c-form-control {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--skelflo-input);
  border-radius: 0.375rem;
  background: var(--skelflo-background);
  color: var(--skelflo-foreground);
  font: inherit;
  padding: 0.625rem 0.75rem;
  box-shadow: var(--skelflo-shadow);
}

.skelflo-card input:focus-visible,
.skelflo-card select:focus-visible,
.skelflo-card textarea:focus-visible,
.skelflo-card .pf-v5-c-form-control:focus-visible {
  outline: 2px solid var(--skelflo-ring);
  outline-offset: 2px;
}

.skelflo-card .pf-v5-c-button.pf-m-primary,
.skelflo-card input[type="submit"] {
  min-height: 2.5rem;
  border: 1px solid var(--skelflo-primary);
  border-radius: 0.375rem;
  background: var(--skelflo-primary);
  color: var(--skelflo-primary-foreground);
  font: inherit;
  font-weight: 600;
  padding: 0.625rem 1rem;
}

/* Ardana Design System component overrides. Kept after inherited Keycloak
   rules so login, reset, OTP, and required-action pages share one system. */
:root {
  --skelflo-background: #f7fafc;
  --skelflo-foreground: #1f2933;
  --skelflo-muted: #627d98;
  --skelflo-muted-soft: #91a5b5;
  --skelflo-card: #ffffff;
  --skelflo-card-foreground: #102a43;
  --skelflo-border: #e2e8f0;
  --skelflo-input: #91a5b5;
  --skelflo-ring: #2c7a7b;
  --skelflo-primary: #102a43;
  --skelflo-primary-foreground: #ffffff;
  --skelflo-destructive: #c53030;
  --skelflo-radius: 0.5rem;
  --skelflo-shadow: 0 2px 8px rgb(16 42 67 / 8%);
}

body.skelflo-login-body {
  background: var(--skelflo-background);
  font-family: "Inter", sans-serif;
}

.skelflo-login-shell { width: min(100%, 28rem); }
.skelflo-brand { gap: 0.5rem; margin-bottom: 1.25rem; }
.skelflo-logo { width: 2.5rem; height: 2.5rem; border-radius: 6px; box-shadow: var(--skelflo-shadow); }
.skelflo-brand-name { color: var(--skelflo-card-foreground); font-family: "Manrope", sans-serif; font-size: 1rem; }
.skelflo-card { border-radius: 8px; background: var(--skelflo-card); }
.skelflo-card-footer { background: var(--skelflo-background); }
.skelflo-title { color: var(--skelflo-card-foreground); font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: -0.025em; }
.skelflo-input { border-radius: 6px; background: var(--skelflo-background); box-shadow: var(--skelflo-shadow); }
.skelflo-input:hover { border-color: var(--skelflo-ring); }
.skelflo-input:focus, .skelflo-input:focus-visible { box-shadow: 0 0 0 2px var(--skelflo-ring); }
.skelflo-message { border-radius: 8px; background: var(--skelflo-background); }
.skelflo-message-error { border-color: #feb2b2; background: #fff5f5; }
.skelflo-link { color: var(--skelflo-primary); }
.skelflo-link:hover, .skelflo-link:focus-visible { color: var(--skelflo-ring); }
.skelflo-button { border-radius: 6px; }
.skelflo-button:hover { background: rgb(16 42 67 / 90%); }
.skelflo-idp-link { border-radius: 6px; background: var(--skelflo-background); }
.skelflo-idp-link:hover { border-color: var(--skelflo-ring); background: #e3f0f0; }

@media (max-width: 480px) {
  .skelflo-login-page {
    align-items: start;
    padding-top: 1.25rem;
  }

  .skelflo-card-header,
  .skelflo-card-content,
  .skelflo-card-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .skelflo-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .skelflo-card,
  .skelflo-input,
  .skelflo-button,
  .skelflo-idp-link {
    border: 1px solid CanvasText;
  }
}
