@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ─── Design tokens ───────────────── */
:root {
  /* Font */
  --op-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Colors — text */
  --op-color-text: #000000;
  --op-color-text-subtle: #6f7b8c;

  /* Colors — brand / interactive */
  --op-color-primary: #0064fa;
  --op-color-primary-hover: #0056d6;
  --op-color-primary-active: #004bb8;

  /* Colors — semantic */
  --op-color-error: #de2c35;
  --op-color-success: #2bb351;

  /* Colors — borders */
  --op-color-border-card: #dce0e6;
  --op-color-border-input: #6f7b8c;
  --op-color-border-input-focus: #6eb0ff;

  /* Colors — backgrounds */
  --op-color-page-bg: #f4f6f8;
  --op-color-bg-hover: #f8f9fb;
  --op-color-bg-disabled: #ebedf0;

  /* Shadow / radius / spacing */
  --op-shadow-card: 0 1px 2px rgba(4, 22, 48, 0.08);
  --op-radius-card: 12px;
  --op-radius-control: 4px;
  --op-space-card: 40px;

  /* Sizing */
  --op-logo-width: 200px;
  --op-logo-height: 42px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ────────────────────────────────────────────────── */
html {
  height: 100%;
  background-color: var(--op-color-page-bg);
  background-image: none;
}

body {
  height: 100%;
  background: transparent;
  font-family: var(--op-font);
  font-size: 14px;
  line-height: 1.43;
  color: var(--op-color-text-subtle);
}

/* ─── Logo / header ──────────────────────────────────────── */
#kc-header {
  display: block;
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 2;
  max-width: calc(100vw - 80px);
}

#kc-header-wrapper {
  display: block;
  width: var(--op-logo-width);
  height: var(--op-logo-height);
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  text-indent: -9999px;
  background: url('https://cipa-cdn.s3.eu-central-1.amazonaws.com/logo/openpack_Logo_pos_text_RGB.svg') no-repeat left center / contain;
}

#kc-header-wrapper * {
  display: none;
}

/* ─── Page layout ────────────────────────────────────────── */
.op-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

/* ─── Card ───────────────────────────────────────────────── */
.op-card {
  background: #fff;
  border: 1px solid var(--op-color-border-card);
  border-radius: var(--op-radius-card);
  box-shadow: var(--op-shadow-card);
  width: 100%;
  max-width: 410px;
  padding: var(--op-space-card);
}

.op-card-header {
  text-align: center;
  margin-bottom: 24px;
}

/* Multiline loginAccountTitle / registerTitle via messages + \n */
#kc-page-title {
  display: block;
  margin: 0;
  white-space: pre-line;
  text-align: center;
  font-family: var(--op-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--op-color-text-subtle);
}

#kc-page-title::first-line {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--op-color-text);
}

/* ::first-line only covers the first *rendered* line, so on mobile
   "openpack" could wrap onto a second line and lose its heading style.
   This rule targets the element directly and wins due to higher specificity. */
#kc-page-title.op-welcome-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--op-color-text);
}

.op-welcome-subtitle {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  font-family: var(--op-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--op-color-text-subtle);
}

/* ─── Alerts ─────────────────────────────────────────────── */
.op-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--op-radius-control);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.op-alert .pf-c-alert__icon:empty {
  display: none;
}

.op-alert-title {
  flex: 1;
  min-width: 0;
}

.alert-error   { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #f0fef4; color: #1e7e34; border: 1px solid #b3e6c5; }
.alert-warning { background: #fffbf0; color: #b35a00; border: 1px solid #fde8b3; }
.alert-info    { background: #f0f7ff; color: #0b5ed7; border: 1px solid #b3d4f5; }

/* ─── Form fields ────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.field-label {
  display: block;
  font-weight: 600;
  color: var(--op-color-text-subtle);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--op-color-border-input);
  border-radius: var(--op-radius-control);
  font-family: var(--op-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--op-color-text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  font-style: italic;
  color: var(--op-color-text-subtle);
}

.form-control:focus {
  border-color: var(--op-color-border-input-focus);
  outline: none;
  box-shadow: 0 0 0 1px var(--op-color-border-input-focus);
}

.field-error {
  display: block;
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
}

/* ─── Input error states ─────────────────────────────────── */

/* Login: invalid email/password (red border, icon, message) */
.op-input-row {
  position: relative;
  width: 100%;
}

.op-input-row .form-control {
  width: 100%;
}

.op-input-row--error .form-control {
  border-color: var(--op-color-error);
  padding-right: 36px;
}

.op-input-row--error .form-control:focus {
  border-color: var(--op-color-error);
  outline: none;
  box-shadow: 0 0 0 1px var(--op-color-error);
}

.op-input-error-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--op-color-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.op-field-error-text {
  margin-top: 4px;
  padding-left: 12px;
  color: var(--op-color-error);
}

.input-group.op-input-row--error-password .form-control {
  border-color: var(--op-color-error);
}

.input-group.op-input-row--error-password .form-control:focus {
  border-color: var(--op-color-error);
  outline: none;
  box-shadow: 0 0 0 1px var(--op-color-error);
}

/* ─── Password field + toggle ────────────────────────────── */
.input-group {
  display: flex;
  align-items: center;
  position: relative;
}

.input-group .form-control {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--op-color-text-subtle);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--op-color-text);
}

.password-toggle-icon--show,
.password-toggle-icon--hide {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Eye — password is hidden, click to reveal */
.password-toggle-icon--show {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Eye-slash — password is visible, click to hide */
.password-toggle-icon--hide {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

/* ─── Buttons — primary & secondary ─────────────────────── */
.btn.btn-primary.btn-block,
.btn.btn-primary {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background-color: var(--op-color-primary);
  border: none;
  border-radius: var(--op-radius-control);
  color: #fff;
  font-family: var(--op-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn.btn-primary.btn-block:hover,
.btn.btn-primary:hover {
  background-color: var(--op-color-primary-hover);
}

.btn.btn-primary.btn-block:active,
.btn.btn-primary:active {
  background-color: var(--op-color-primary-active);
}

.btn.btn-secondary {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background-color: #fff;
  border: 1px solid var(--op-color-border-input);
  border-radius: var(--op-radius-control);
  color: var(--op-color-text);
  font-family: var(--op-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn.btn-secondary:hover {
  background-color: var(--op-color-bg-hover);
  border-color: var(--op-color-text-subtle);
}

/* ─── Remember me checkbox ───────────────────────────────── */
.op-remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--op-color-text-subtle);
}

.op-remember-me input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--op-color-border-input);
  border-radius: var(--op-radius-control);
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.op-remember-me input[type="checkbox"]:checked {
  background-color: var(--op-color-primary);
  border-color: var(--op-color-primary);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M14.7531%203.21878C15.0719%203.51253%2015.0719%203.98753%2014.7531%204.25316L6.50313%2012.5032C6.2375%2012.8219%205.7625%2012.8219%205.46875%2012.5032L1.21966%208.25316C0.926781%207.98753%200.926781%207.51253%201.21966%207.21878C1.5125%206.92816%201.9875%206.92816%202.28031%207.21878L6%2010.9407L13.7188%203.21878C14.0125%202.92691%2014.4875%202.92691%2014.7531%203.21878Z%22%20fill%3D%22white%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

.op-remember-me input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--op-color-border-input-focus);
  outline-offset: 1px;
}

/* ─── Login fields group ─────────────────────────────────── */
.op-login-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.op-login-fields .form-group {
  margin-bottom: 0;
}

/* ─── Submit button spacing ──────────────────────────────── */
.op-login-submit {
  margin-top: 24px;
}

/* ─── Form options row ───────────────────────────────────── */
.form-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.form-setting label {
  font-size: 14px;
  color: var(--op-color-text-subtle);
}

.form-options-wrapper {
  margin-left: auto;
}

.form-options-wrapper a {
  color: var(--op-color-primary);
  text-decoration: none;
}

.form-options-wrapper a:hover {
  text-decoration: underline;
}

/* ─── Sign-up footer ─────────────────────────────────────── */
.sign-up {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--op-color-text-subtle);
}

.sign-up a {
  color: var(--op-color-primary);
  font-weight: 400;
  text-decoration: none;
}

.sign-up a:hover {
  text-decoration: underline;
}

/* ─── Social providers ───────────────────────────────────── */
#kc-social-providers {
  margin-top: 16px;
}

/* Base template already renders <hr>; use flex "ODER" row on h2 only */
#kc-social-providers hr {
  display: none;
}

#kc-social-providers > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--op-color-text-subtle);
  margin: 0 0 16px;
  text-transform: none;
}

#kc-social-providers > h2::before,
#kc-social-providers > h2::after {
  content: '';
  flex: 1 1 auto;
  height: 0;
  border-top: 1px solid var(--op-color-border-card);
}

#kc-social-providers .kc-social-item,
#kc-social-providers a[id^="social-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--op-color-border-input);
  border-radius: var(--op-radius-control);
  font-size: 14px;
  color: var(--op-color-text);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

#kc-social-providers a[id^="social-"]:hover {
  background: var(--op-color-bg-hover);
  border-color: var(--op-color-text-subtle);
}

#kc-social-providers ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#kc-social-providers li {
  margin: 0;
  padding: 0;
}

/* ─── Email display field ────────────────────────────────── */
.op-label-disabled {
  color: #b3bac5;
}

.op-email-row {
  position: relative;
}

.op-email-disabled {
  background: var(--op-color-bg-disabled);
  border-color: var(--op-color-border-card);
  color: var(--op-color-text-subtle);
  padding-right: 36px;
  cursor: default;
}

.op-email-disabled:focus {
  border-color: var(--op-color-border-card);
  box-shadow: none;
}

.op-email-edit-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--op-color-text-subtle);
  text-decoration: none;
  line-height: 0;
}

.op-email-edit-btn:hover {
  color: var(--op-color-text);
}

.op-pen-icon {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.83031 10.0915L11.3344 0.585891C12.1156 -0.195297 13.3844 -0.195297 14.1656 0.585891L15.3969 1.81808C15.4937 1.91558 15.5781 2.02089 15.6531 2.13183C16.1656 2.90808 16.0812 3.96339 15.3969 4.64777L5.89062 14.1509C5.84999 14.1915 5.80937 14.204 5.76562 14.2696C5.46562 14.5353 5.10937 14.704 4.72187 14.8446L0.961555 15.9509C0.69843 16.029 0.413743 15.9571 0.21968 15.7353C0.0256117 15.5696 -0.0469446 15.2853 0.0304929 15.0196L1.13656 11.2603C1.26656 10.8196 1.50499 10.4165 1.83031 10.0915ZM2.57562 11.6821L1.85749 14.1259L4.29999 13.4071C4.47187 13.3478 4.68124 13.2384 4.83124 13.0915L11.9687 5.95089L10.0031 3.98527L2.89093 11.1509C2.87249 11.1696 2.85468 11.1884 2.83749 11.2103C2.71687 11.3446 2.62718 11.5071 2.57562 11.6821Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.83031 10.0915L11.3344 0.585891C12.1156 -0.195297 13.3844 -0.195297 14.1656 0.585891L15.3969 1.81808C15.4937 1.91558 15.5781 2.02089 15.6531 2.13183C16.1656 2.90808 16.0812 3.96339 15.3969 4.64777L5.89062 14.1509C5.84999 14.1915 5.80937 14.204 5.76562 14.2696C5.46562 14.5353 5.10937 14.704 4.72187 14.8446L0.961555 15.9509C0.69843 16.029 0.413743 15.9571 0.21968 15.7353C0.0256117 15.5696 -0.0469446 15.2853 0.0304929 15.0196L1.13656 11.2603C1.26656 10.8196 1.50499 10.4165 1.83031 10.0915ZM2.57562 11.6821L1.85749 14.1259L4.29999 13.4071C4.47187 13.3478 4.68124 13.2384 4.83124 13.0915L11.9687 5.95089L10.0031 3.98527L2.89093 11.1509C2.87249 11.1696 2.85468 11.1884 2.83749 11.2103C2.71687 11.3446 2.62718 11.5071 2.57562 11.6821Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ─── Password label row ─────────────────────────────────── */
.op-password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.op-password-label-row .field-label {
  margin-bottom: 0;
}

.op-password-label-row a {
  color: var(--op-color-primary);
  text-decoration: none;
}

.op-password-label-row a:hover {
  text-decoration: underline;
}

/* ─── Page: Reset password ───────────────────────────────── */
#kc-reset-password-form.op-reset-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

#kc-reset-password-form .form-group {
  margin-bottom: 0;
}

#kc-reset-password-form .op-reset-field {
  width: 100%;
  margin-bottom: 24px;
}

#kc-reset-password-form .op-reset-hint {
  margin-top: 0;
  margin-bottom: 24px;
  width: 100%;
  text-align: center;
  color: var(--op-color-text-subtle);
}

#kc-reset-password-form .op-reset-back {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 0;
}

#kc-reset-password-form .op-reset-back a {
  color: var(--op-color-primary);
  text-decoration: none;
}

#kc-reset-password-form .op-reset-back a:hover {
  text-decoration: underline;
}

/* ─── Page: Update password ──────────────────────────────── */
#kc-passwd-update-form .form-group:last-child {
  margin-bottom: 0;
}

#kc-passwd-update-form #kc-form-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#kc-passwd-update-form .op-verify-back-btn {
  margin-bottom: 0;
}

/* ─── Page: Register ─────────────────────────────────────── */
/* Register profile fields: invalid UI via user-profile-commons.ftl (op-input-row + op-field-error-text), same as login. */
#kc-register-form .op-register-submit {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

#kc-register-form .op-register-back {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 0;
}

#kc-register-form .op-register-back .op-register-back-label {
  color: var(--op-color-text-subtle);
}

#kc-register-form .op-register-back a {
  color: var(--op-color-primary);
  text-decoration: none;
}

#kc-register-form .op-register-back a:hover {
  text-decoration: underline;
}

#kc-registration-container a,
#kc-form-options a {
  color: var(--op-color-primary);
}

#kc-form-options a:hover {
  text-decoration: underline;
}

/* ─── Page: TOTP ─────────────────────────────────────────── */
#kc-totp-settings .op-totp-qr {
  display: block;
  margin: 0 auto;
}

/* ─── Page: Verify email ─────────────────────────────────── */
[data-page-id="login-login-verify-email"] .op-card-header {
  display: none;
}

.op-verify-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.op-verify-illustration {
  margin-bottom: 40px;
}

.op-verify-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--op-color-text);
  margin-bottom: 40px;
}

.op-verify-body {
  color: var(--op-color-text-subtle);
  margin-bottom: 40px;
}

.op-verify-body strong {
  font-weight: 700;
  color: var(--op-color-text);
}

/* Cancel/secondary-action button used in multi-step flows (TOTP setup, update password), not just email-verify. */
.op-verify-back-btn {
  margin-bottom: 24px;
}

.op-verify-resend {
  color: var(--op-color-text-subtle);
}

.op-verify-resend a {
  color: var(--op-color-primary);
  text-decoration: none;
}

.op-verify-resend a:hover {
  text-decoration: underline;
}

.op-verify-resend a.op-link-sending {
  color: var(--op-color-text-subtle);
  pointer-events: none;
}

/* ─── Page: Page expired ─────────────────────────────────── */
[data-page-id="login-login-page-expired"] .op-card-header {
  display: none;
}

.op-page-expired-illustration {
  margin-bottom: 40px;
}

.op-page-expired-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--op-color-text);
  margin-bottom: 24px;
}

.op-page-expired-body {
  color: var(--op-color-text-subtle);
  margin-bottom: 40px;
}

/* ─── Password policy checklist ──────────────────────────── */
.op-pw-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.op-pw-checklist[hidden] {
  display: none !important;
}

.op-pw-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--op-color-text-subtle);
}

.op-pw-checklist-item--met {
  color: var(--op-color-success);
}

.op-pw-checklist-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  display: block;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4' fill='black'/%3E%3C/svg%3E");
}

.op-pw-checklist-item--met .op-pw-checklist-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpolyline points='1,6 4.5,9.5 11,2' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpolyline points='1,6 4.5,9.5 11,2' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ─── Locale dropdown ────────────────────────────────────── */
#kc-locale {
  margin-bottom: 12px;
}

#kc-locale button,
#kc-locale a {
  font-family: var(--op-font);
  font-size: 13px;
  color: var(--op-color-primary);
}

/* cache test update */

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --op-space-card: 24px;
  }

  .op-page {
    padding: 16px 16px;
  }

  #kc-header {
    top: 16px;
    left: 16px;
  }
}

/* ─── Page: Info ─────────────────────────────────────────── */
#kc-info-message .btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#kc-info-message .instruction {
  margin-bottom: 24px;
}
