/*
 * Applisights login theme.
 *
 * A hand-written translation of the portal's Tailwind sign-in page. Keycloak
 * serves these pages, so the Tailwind build in builder/ cannot reach them; the
 * design tokens below are the literal values of the utility classes the portal
 * uses (gray-50, pink-500, rounded-lg, shadow-md, ...).
 */

/* The portal loads Inter from Google Fonts in its <head>; Keycloak renders its
   own <head>, so the theme has to request the family itself or the pages fall
   back to the system UI font and stop matching the rest of the product. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --as-gray-50: #f9fafb;
  --as-gray-100: #f3f4f6;
  --as-gray-200: #e5e7eb;
  --as-gray-300: #d1d5db;
  --as-gray-400: #9ca3af;
  --as-gray-500: #6b7280;
  --as-gray-600: #4b5563;
  --as-gray-900: #111827;
  --as-pink-400: #f472b6;
  --as-pink-500: #ec4899;
  --as-radius: 0.5rem;
  --as-radius-card: 0.75rem;
  --as-ring: 0 0 0 1px rgb(0 0 0 / 0.05);

  /* The portal card was a single `p-7 sm:p-11` form. Keycloak splits that box
     into a header, a title block and a body, so the padding lives in one
     variable to keep the three of them on the same inset. */
  --as-pad: 1.75rem;

  /* `shadow-md`, plus the ring split into individual edges. The card is drawn
     as two stacked elements (#kc-header and main), and a ring on each would
     paint a hairline across the seam under the logo. */
  --as-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --as-ring-sides: -1px 0 0 0 rgb(0 0 0 / 0.05), 1px 0 0 0 rgb(0 0 0 / 0.05);
  --as-ring-top: 0 -1px 0 0 rgb(0 0 0 / 0.05);
  --as-ring-bottom: 0 1px 0 0 rgb(0 0 0 / 0.05);
}

@media (min-width: 640px) {
  :root {
    --as-pad: 2.75rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.as-html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

.as-body {
  margin: 0;
  min-height: 100%;
  background-color: var(--as-gray-50);
  color: var(--as-gray-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

#keycloak-bg.as-body {
  background: var(--as-gray-50);
}

/* The blurred gradient wash behind the card, lifted from the portal page. */
.as-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.as-page::before {
  content: '';
  position: absolute;
  top: -11rem;
  right: -15rem;
  height: 15rem;
  width: 32rem;
  transform: rotate(-10deg);
  border-radius: 9999px;
  filter: blur(64px);
  background: linear-gradient(115deg, #fff1be 28%, #ee87cb 70%, #b060ff);
}

.as-glow-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 80rem;
  pointer-events: none;
  user-select: none;
}

.as-glow {
  position: absolute;
  top: -11rem;
  right: -15rem;
  height: 15rem;
  width: 32rem;
  transform: rotate(-10deg);
  border-radius: 9999px;
  filter: blur(64px);
  background: linear-gradient(115deg, #fff1be 28%, #ee87cb 70%, #b060ff);
}

@media (min-width: 768px) {
  .as-page::before,
  .as-glow {
    right: 0;
  }
}

.as-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 28rem);
  align-content: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .as-shell {
    padding: 2rem;
  }
}

/* The logo strip and the body are separate grid items, so they each carry the
   half of the card outline that faces away from the seam. Both take the same
   blurred shadow so it runs unbroken down the sides; the strip's half is hidden
   behind the body, which paints over it. */
.as-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  border-radius: 0 0 var(--as-radius-card) var(--as-radius-card);
  background-color: #fff;
  box-shadow: var(--as-shadow-md), var(--as-ring-sides), var(--as-ring-bottom);
}

#kc-header {
  position: relative;
  z-index: 0;
  width: 100%;
  border-bottom: 0;
  border-block-end: 0;
  border-radius: var(--as-radius-card) var(--as-radius-card) 0 0;
  background-color: #fff;
  padding: var(--as-pad) var(--as-pad) 0;
  box-shadow: var(--as-shadow-md), var(--as-ring-sides), var(--as-ring-top);
  grid-area: auto;
}

#kc-header-wrapper {
  display: block;
  width: 10rem;
  height: 2.25rem;
  overflow: hidden;
  background: url('../img/logo.png') left center / contain no-repeat;
  color: transparent;
  font-size: 0;
  user-select: none;
}

/* The 2rem top is the title's `mt-8` off the logo; the body opens flush so the
   first form group's own `mt-8` sets the gap under the subtitle. */
.as-card-header {
  padding: 2rem var(--as-pad) 0;
}

.as-card-body {
  padding: 0 var(--as-pad) var(--as-pad);
}

/* Keycloak's login.ftl renders no subtitle, and adding one would mean forking
   the template. The line is fixed English copy on the sign-in and sign-up
   pages, which `#kc-form-login` and `#kc-register-form` identify. */
.as-card:has(#kc-form-login) .as-card-header::after,
.as-card:has(#kc-register-form) .as-card-header::after {
  content: 'Welcome back. Sign in to continue.';
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  color: var(--as-gray-600);
}

/* The sign-up page states what a new account gets, in the same slot. */
.as-card:has(#kc-register-form) .as-card-header::after {
  content: 'Post jobs and let AI rank every applicant.';
}

.as-logo {
  display: block;
  height: 2.25rem;
  width: auto;
}

.as-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--as-gray-900);
}

.as-locale-wrap {
  margin-top: 1rem;
}

.as-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--as-gray-600);
}

/* Card footer strip ("No account yet? Create one"). */
.as-card-footer {
  margin: 0.375rem;
  border-radius: var(--as-radius);
  background-color: var(--as-gray-50);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--as-gray-600);
  box-shadow: var(--as-ring);
}

.as-footer-band:not(#kc-info) {
  position: relative;
  margin-top: 1.5rem;
  text-align: center;
}

.as-footer-band:not(#kc-info)::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--as-gray-200);
}

.as-footer-band:not(#kc-info) .as-footer-band-item {
  position: relative;
  display: inline-block;
  background: #fff;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--as-gray-500);
}

/* The strip sits outside the body's padding, inset 0.375rem from the card edge
   like the portal's `m-1.5`; the top margin restores the padding it cancels. */
#kc-info {
  margin: 2.125rem calc(0.375rem - var(--as-pad)) calc(0.375rem - var(--as-pad));
  border-radius: var(--as-radius);
  background-color: var(--as-gray-50);
  padding: 1rem;
  text-align: center;
  color: var(--as-gray-600);
  box-shadow: var(--as-ring);
}

/* --- Alerts ------------------------------------------------------------- */

.as-alert {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  border-radius: var(--as-radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.as-alert svg {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

/* The portal's error flash used a ring and its success flash used a border, so
   the two differ by the border's 2px. Reproduced rather than harmonised, to
   keep these pages pixel-identical to the pre-Keycloak ones. */
.as-alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  box-shadow: 0 0 0 1px #fecaca;
}

.as-alert.pf-m-danger {
  background-color: #fef2f2;
  color: #dc2626;
  box-shadow: 0 0 0 1px #fecaca;
}

.as-alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.as-alert.pf-m-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.as-alert-success svg {
  color: #10b981;
}

.as-alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.as-alert.pf-m-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.as-alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.as-alert.pf-m-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Scoped past `.as-body a` below so alert links keep the alert's colour. */
.as-body .as-alert a {
  color: inherit;
  text-decoration: underline;
}

.as-alert-icon {
  display: none;
}

/* --- Forms -------------------------------------------------------------- */

.as-form {
  margin: 0;
}

/* Positioned so the password field's "Forgot password?" link can be pinned to
   the top-right of the group, level with the label. */
.as-group {
  position: relative;
  margin-top: 1.5rem;
}

.as-group:first-of-type,
.as-form > .as-group:first-child {
  margin-top: 2rem;
}

/* `inline-block`, not `block`: the parent theme renders the required-field
   marker as a sibling of the label, and a block label pushes that "*" onto its
   own line. The following input is block-level, so it still starts a new line
   and the label's bottom margin still applies. */
.as-label,
.as-label-wrap label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--as-gray-900);
}

/* The required marker, whatever the parent theme wraps it in. */
.as-label-wrap .required,
.as-required {
  font-weight: 500;
  color: var(--as-gray-500);
}

/* Only the marker that trails a label needs separating from it; the one in the
   "* Required fields" note leads its line and must not be indented. */
.as-label-wrap .required {
  margin-left: 0.125rem;
}

.as-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.as-label-row .as-label {
  margin-bottom: 0;
}

.as-input,
.as-body input[type='text'],
.as-body input[type='email'],
.as-body input[type='password'],
.as-body input[type='tel'],
.as-body input[type='number'],
.as-body select,
.as-body textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--as-gray-300);
  border-radius: var(--as-radius);
  background-color: #fff;
  padding: 0.375rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--as-gray-900);
  outline: none;
}

.as-input::placeholder {
  color: var(--as-gray-400);
}

.as-input:focus,
.as-body input[type='text']:focus,
.as-body input[type='email']:focus,
.as-body input[type='password']:focus,
.as-body input[type='tel']:focus,
.as-body input[type='number']:focus,
.as-body select:focus,
.as-body textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--as-pink-500);
}

.as-input:disabled {
  background-color: var(--as-gray-100);
  color: var(--as-gray-500);
}

/* Keycloak wraps password inputs so it can render a show/hide toggle. */
.as-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.as-input-group .as-input {
  flex: 1 1 auto;
}

.as-input-group-item.as-fill {
  flex: 1 1 auto;
  min-width: 0;
}

/* keycloak.v2 applies the input class to a wrapper around the native field. */
.as-input:not(input):not(select):not(textarea) {
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* The parent theme trails the field with a utility slot (the error status icon,
   and the chevron on the locale select). The control before it is full width,
   so in flow the slot wraps onto a second line and hangs below the field, where
   the wrapper's overflow clips it. Pin it to the right of the field instead. */
.as-input > .as-control-util {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  line-height: 0;
}

/* The portal marked an invalid field with a red border and the message beneath
   it, and showed no icon inside the field. */
.as-input-error-icon {
  display: none;
}

.as-body .as-input > input,
.as-body .as-input > select,
.as-body .as-input > textarea {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.375rem 0.75rem;
  color: inherit;
  font: inherit;
  outline: 0;
  box-shadow: none;
}

.as-input:focus-within {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--as-pink-500);
}

.as-body .as-input > input:focus,
.as-body .as-input > select:focus,
.as-body .as-input > textarea:focus {
  box-shadow: none;
}

.as-input.as-error-state {
  border-color: #dc2626;
}

.as-input.as-error-state:focus-within {
  border-color: transparent;
}

/* Room for the Show/Hide toggle that sits over the right edge of the field. */
.as-body .as-input-group .as-input > input {
  padding-right: 3.25rem;
}

/* Without an explicit `top` the toggle falls to its static position, which is
   the vertical middle of an empty flex item and lands under the field. Centre
   it in the padding the rule above reserves on the right of the input. */
.as-input-group button {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.25rem;
  background: none;
  padding: 0;
  color: var(--as-gray-500);
  cursor: pointer;
}

.as-input-group button:focus-visible {
  outline: 2px solid var(--as-pink-500);
  outline-offset: 2px;
}

.as-password-show,
.as-password-hide {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--as-pink-500);
}

.as-input-group button:hover .as-password-show,
.as-input-group button:hover .as-password-hide {
  color: var(--as-pink-400);
}

.as-password-show::before {
  content: 'Show';
}

.as-password-hide::before {
  content: 'Hide';
}

.as-locale {
  margin: 0 0 1rem auto;
  max-width: 12rem;
}

.as-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #dc2626;
}

.as-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--as-gray-500);
}

.as-options,
.as-setting {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

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

.as-help-items > .as-help-item .as-help {
  margin-top: 0;
}

/* keycloak.v2's password macro packs the "Forgot password?" link and the
   "Keep me signed in" box into one helper row jammed under the field. The
   portal put the link on the label row and had no checkbox at all, so the link
   goes back up top and the checkbox is left on its own line below the input.
   Matching on a direct child keeps error messages, which the same macro nests
   one level deeper in #input-error-container-*, out of this. */
.as-group > .as-input-group + .as-help-wrap > .as-help-items > .as-help-item {
  position: absolute;
  top: 0;
  right: 0;
}

.as-group > .as-input-group + .as-help-wrap > .as-help-items > .as-help-item .as-help {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.as-group > .as-input-group + .as-help-wrap > .as-help-items > .as-checkbox-wrap {
  margin-top: 0.875rem;
}

.as-checkbox-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  line-height: 1.25rem;
  cursor: pointer;
}

/* The portal's checkboxes come from @tailwindcss/forms: a square with the
   field border, filled pink with a white tick when checked. A native control
   with `accent-color` does not match it, so the appearance is rebuilt here. */
.as-checkbox,
.as-radio {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  margin: 0;
  height: 1rem;
  width: 1rem;
  border: 1px solid var(--as-gray-300);
  border-radius: 0.25rem;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}

.as-radio {
  border-radius: 9999px;
}

.as-checkbox:checked,
.as-radio:checked {
  border-color: transparent;
  background-color: var(--as-pink-500);
}

.as-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.as-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.as-checkbox:focus-visible,
.as-radio:focus-visible {
  outline: 2px solid var(--as-pink-400);
  outline-offset: 2px;
}

.as-checkbox-label,
.as-options label {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--as-gray-600);
  margin-bottom: 0;
}

.as-buttons {
  margin-top: 2rem;
}

.as-margin-top {
  margin-top: 1rem;
}

/* --- Buttons and links -------------------------------------------------- */

.as-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--as-radius);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* Button colours are scoped under `.as-body` so they outrank the generic
   `.as-body a` link colour further down. Keycloak applies these button classes
   to anchors as well as buttons, and an unscoped `.as-btn-primary` (0,1,0)
   loses to `.as-body a` (0,1,1), painting pink text onto the pink button.

   `button:not([class])` catches inherited templates that render an unclassed
   submit control, so those pages still get the portal's primary button. */
.as-body .as-btn-primary,
.as-body input[type='submit'],
.as-body button:not([class]) {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--as-radius);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--as-pink-500);
  color: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.as-body .as-btn-primary:hover,
.as-body input[type='submit']:hover,
.as-body button:not([class]):hover {
  background-color: var(--as-pink-400);
  color: #fff;
}

.as-btn-primary:focus-visible,
.as-btn-default:focus-visible,
.as-btn-secondary:focus-visible {
  outline: 2px solid var(--as-pink-500);
  outline-offset: 2px;
}

.as-body .as-btn-default,
.as-body .as-btn-secondary {
  background-color: #fff;
  color: var(--as-gray-900);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05), 0 0 0 1px rgb(0 0 0 / 0.1);
}

.as-body .as-btn-default:hover,
.as-body .as-btn-secondary:hover {
  background-color: var(--as-gray-50);
  color: var(--as-gray-900);
}

.as-btn + .as-btn {
  margin-top: 0.75rem;
}

.as-link,
.as-body a {
  color: var(--as-pink-500);
  font-weight: 500;
  text-decoration: none;
}

.as-body a:hover {
  color: var(--as-pink-400);
}

.as-muted {
  color: var(--as-gray-600);
  font-weight: 400;
}

/* --- Social providers --------------------------------------------------- */

.as-divider {
  position: relative;
  margin-top: 1.5rem;
}

.as-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  border-top: 1px solid var(--as-gray-200);
}

.as-divider span {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #fff;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--as-gray-500);
}

.as-social-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

/* The identity-provider button is an anchor, so it is scoped under `.as-body`
   to outrank the generic link colour. It matches the portal's original button:
   a gray-900 label on white, not the pink link treatment. */
.as-body .as-social-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* The portal's button carried a transparent 1px border; kept so the button
     is the same height here as it is there. */
  border: 1px solid transparent;
  border-radius: var(--as-radius);
  background-color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--as-gray-900);
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05), 0 0 0 1px rgb(0 0 0 / 0.1);
}

.as-body .as-social-btn:hover {
  background-color: var(--as-gray-50);
  color: var(--as-gray-900);
}

.as-disabled,
.as-body .as-social-btn[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.6;
}

.as-social-btn svg {
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

/* The parent theme labels the button with the provider's display name alone
   ("Google"); the portal's button read "Sign in with Google". The anchor keeps
   its own aria-label, so the swap is presentational. The replacement text is a
   flex item of the button itself rather than generated content inside the
   original span, so `align-items: center` lines it up against the icon. */
#social-google .as-social-name {
  display: none;
}

#social-google::after {
  content: 'Continue with Google';
}

/* --- Sign-up page --------------------------------------------------------- */

/* Google sits first on the sign-up page, so the list takes the gap under the
   subtitle that the first form group takes on the sign-in page, and the form
   below the "or sign up with email" divider opens on the divider's spacing. */
#kc-register-social .as-social-list {
  margin-top: 2rem;
}

#kc-register-social ~ .as-form > .as-group:first-child {
  margin-top: 1.5rem;
}

#kc-register-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--as-gray-500);
}

/* Parent-theme templates render provider icons as font-icon spans. There is no
   icon font in this theme, so hide them rather than show a fallback glyph. */
.as-social-btn i {
  display: none;
}

/* --- Misc inherited templates ------------------------------------------- */

.as-form-header {
  margin-top: 2rem;
}

.as-form-header h1,
.as-page-header h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--as-gray-900);
}

.as-info,
.as-instruction {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--as-gray-600);
}

/* Inherited templates (verify email, account updated) write their text as a
   bare `p.instruction`, which otherwise sits flush against the alert above it.
   In the footer strip the strip's own padding does the spacing. */
.as-card-body .instruction {
  margin: 1rem 0 0;
}

#kc-info .instruction {
  margin: 0;
}

.as-otp-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.as-otp-item {
  border: 1px solid var(--as-gray-200);
  border-radius: var(--as-radius);
  padding: 0.75rem;
}

.as-hidden {
  display: none !important;
}

.as-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
