/* ==========================================================================
   iCare sign-in design system (Keycloak 26.7.4 login theme "icare").

   Every sign-in page is one card on the product's background photo. The ic-* classes are
   used by our own templates and, through the kc* mappings in theme.properties, by every
   base template we do not override -- so no page falls back to an unstyled or stock look.

   Tokens: brand blue #0769de (white text 5.1:1), text #1d2327 / #3c434a, muted #5d636b
   (5.9:1 on white), input borders #8a9099 (3.3:1, meets the 3:1 non-text minimum).
   ========================================================================== */

:root {
    --ic-blue: #0769de;
    --ic-blue-hover: #0556b8;
    --ic-blue-active: #04469a;
    --ic-blue-tint: #eaf2fd;
    --ic-red: #cd0100;
    --ic-ink: #1d2327;
    --ic-text: #3c434a;
    --ic-muted: #5d636b;
    --ic-line: #e4e7ec;
    --ic-field: #8a9099;
    --ic-surface: #ffffff;
    --ic-subtle: #f6f7f9;
    --ic-focus: 0 0 0 3px rgba(7, 105, 222, .35);
    --ic-err: #b42318;  --ic-err-bg: #fef3f2;  --ic-err-line: #fecdca;
    --ic-warn: #93370d; --ic-warn-bg: #fffaeb; --ic-warn-line: #fedf89;
    --ic-ok: #067647;   --ic-ok-bg: #ecfdf3;   --ic-ok-line: #abefc6;
    --ic-info: #175cd3; --ic-info-bg: #eff8ff; --ic-info-line: #b2ddff;
    --ic-radius: 8px;
    --ic-card-radius: 12px;
    --ic-control-h: 40px;
    --ic-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ic-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font: 400 15px/1.5 var(--ic-font);
    color: var(--ic-text);
    background-color: #0b1f3a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    -webkit-font-smoothing: antialiased;
    letter-spacing: 0;
}
/* The product photo behind the card. ic-brand.ftl swaps landingBG/landingBGNew;
   icare-shadow and patientportal override the images only. */
.landingBG { background-image: url('../img/login-prelanding-bg.jpg'); }
.landingBGNew { background-image: url('../img/login-prelanding-insight-bg.jpg'); }

a { color: var(--ic-blue); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--ic-focus);
}
p { margin: 0 0 12px; }
h1, h2, h3 { color: var(--ic-ink); }
[hidden] { display: none !important; }

/* ---- Shell and card -------------------------------------------------- */
.ic-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.ic-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 24px 24px 20px;
    background: var(--ic-surface);
    border-radius: var(--ic-card-radius);
    box-shadow: 0 8px 24px rgba(2, 8, 30, .16), 0 1px 3px rgba(2, 8, 30, .10);
}
.ic-card-top {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
#kc-logo.ic-logo {
    /* Same 150:70 proportions as loginlogo.png, scaled with contain, so the mark is never cropped. */
    width: 96px;
    height: 45px;
    background: url('../img/loginlogo.png') center / contain no-repeat;
}
#kc-logo.kc-imagnumlogo, #kc-logo.kc-imagnumdevlogo { background-image: url('../img/imagnumlogo.png'); background-size: 140px auto; }
#kc-logo.kc-insightlogo { background-image: url('../img/insightlogo.png'); background-size: 104px auto; }
#kc-logo img { display: block; max-width: 140px; max-height: 44px; margin: 0 auto; object-fit: contain; }

.ic-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--ic-ink);
}
.ic-lead {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ic-muted);
    text-align: center;
}
.ic-lead strong { color: var(--ic-ink); font-weight: 600; }
.ic-body { margin-top: 16px; }
.ic-title + .ic-body, .ic-title + .ic-required-note + .ic-body { margin-top: 18px; }
.ic-body > :last-child { margin-bottom: 0; }
.ic-card-foot {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--ic-line);
    font-size: 14px;
    text-align: center;
    color: var(--ic-muted);
}
.ic-card-foot:empty { display: none; }
.ic-required-note { margin: -2px 0 8px; font-size: 13px; color: var(--ic-muted); text-align: center; }
.ic-required { color: var(--ic-err); }

/* Big round icon on step pages (passkey, phone, mail...). */
.ic-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ic-blue-tint);
    color: var(--ic-blue);
}
.ic-badge .ic-icon { width: 26px; height: 26px; }
.ic-badge-ok { background: var(--ic-ok-bg); color: var(--ic-ok); }
.ic-badge-warn { background: var(--ic-warn-bg); color: var(--ic-warn); }
.ic-badge-err { background: var(--ic-err-bg); color: var(--ic-err); }

.ic-icon { display: block; flex-shrink: 0; width: 20px; height: 20px; }

/* "Signed in as" chip with a Change link (Keycloak's attempted-username + restart). */
.ic-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 6px 8px 6px 12px;
    width: fit-content;
    border: 1px solid var(--ic-line);
    border-radius: 999px;
    background: var(--ic-subtle);
    font-size: 14px;
    color: var(--ic-ink);
}
.ic-user-chip .ic-icon { width: 18px; height: 18px; color: var(--ic-muted); }
.ic-user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ic-user-chip a { padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Language menu (only when the realm enables more than one locale). */
.ic-locale { position: absolute; right: -12px; top: -12px; font-size: 13px; }
.ic-locale summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 999px; color: var(--ic-muted); border: 1px solid var(--ic-line); }
.ic-locale summary::-webkit-details-marker { display: none; }
.ic-locale ul { position: absolute; right: 0; z-index: 5; margin: 6px 0 0; padding: 6px; min-width: 160px; list-style: none; background: #fff; border: 1px solid var(--ic-line); border-radius: 10px; box-shadow: 0 12px 24px rgba(2, 8, 30, .16); }
.ic-locale li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ic-ink); }
.ic-locale li a:hover { background: var(--ic-subtle); text-decoration: none; }

/* ---- Alerts ---------------------------------------------------------- */
.ic-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 4px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}
.ic-alert .ic-icon { margin-top: 0; }
.ic-alert-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ic-alert-text a { font-weight: 600; color: inherit; text-decoration: underline; }
.ic-alert-error   { color: var(--ic-err);  background: var(--ic-err-bg);  border-color: var(--ic-err-line); }
.ic-alert-warning { color: var(--ic-warn); background: var(--ic-warn-bg); border-color: var(--ic-warn-line); }
.ic-alert-success { color: var(--ic-ok);   background: var(--ic-ok-bg);   border-color: var(--ic-ok-line); }
.ic-alert-info    { color: var(--ic-info); background: var(--ic-info-bg); border-color: var(--ic-info-line); }
.ic-title + .ic-alert { margin-top: 16px; }

/* ---- Fields ---------------------------------------------------------- */
.ic-form { margin: 0; }
.ic-field { margin: 0 0 12px; text-align: left; }
.ic-label, .ic-field > label, .ic-field label.ic-label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ic-ink);
}
.ic-input, input.ic-input, select.ic-input, textarea.ic-input {
    display: block;
    width: 100%;
    height: var(--ic-control-h);
    padding: 0 12px;
    font: 400 16px/1.2 var(--ic-font); /* 16px stops iOS zooming into the field */
    color: var(--ic-ink);
    background: #fff;
    border: 1px solid var(--ic-field);
    border-radius: var(--ic-radius);
    box-shadow: none;
    transition: border-color .12s ease, box-shadow .12s ease;
    -webkit-appearance: none;
    appearance: none;
}
textarea.ic-input { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; }
select.ic-input {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235d636b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}
.ic-input::placeholder { color: #9aa0a6; }
.ic-input:hover { border-color: #6b7280; }
.ic-input:focus { outline: none; border-color: var(--ic-blue); box-shadow: var(--ic-focus); }
.ic-input[readonly], .ic-input:disabled { background: var(--ic-subtle); color: var(--ic-muted); }
.ic-input[aria-invalid="true"], .has-error .ic-input { border-color: var(--ic-err); }
.ic-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .25); }
.ic-help { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ic-muted); }
.ic-field-error, span.ic-field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ic-err);
}
.ic-field-error .ic-icon { width: 16px; height: 16px; margin-top: 1px; }

.ic-input-group { position: relative; display: flex; align-items: stretch; }
.ic-input-group .ic-input { padding-right: 48px; }
.ic-pw-toggle, button.ic-pw-toggle {
    position: absolute;
    top: 0; right: 0;
    width: 44px;
    height: var(--ic-control-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0 var(--ic-radius) var(--ic-radius) 0;
    background: transparent;
    color: var(--ic-muted);
    cursor: pointer;
}
.ic-pw-toggle:hover { color: var(--ic-ink); }
.ic-pw-toggle .ic-when-shown, .ic-pw-toggle[aria-pressed="true"] .ic-when-hidden { display: none; }
.ic-pw-toggle[aria-pressed="true"] .ic-when-shown { display: block; }

/* Checkbox / radio. */
.ic-check, .checkbox, .radio { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--ic-text); }
.ic-check label, .checkbox label, .radio label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.ic-check input[type=checkbox], .ic-check-input, .checkbox input[type=checkbox], .radio input[type=radio],
input[type=checkbox].ic-check-input, input[type=radio].ic-check-input {
    width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--ic-blue);
}

/* Row under the fields: remember me on the left, forgot password on the right. */
.ic-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 16px; font-size: 14px; }
.ic-row .ic-check, .ic-row .checkbox { margin: 0; }
.ic-row a { font-weight: 500; }
.ic-form-options, .ic-form-options-inner { font-size: 14px; }

/* ---- Buttons --------------------------------------------------------- */
.ic-btn, input.ic-btn, button.ic-btn, a.ic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: var(--ic-control-h);
    margin: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--ic-radius);
    font: 600 15px/1 var(--ic-font);
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.ic-btn:hover { text-decoration: none; }
.ic-btn-label { display: block; line-height: 20px; overflow: hidden; text-overflow: ellipsis; }
.ic-btn-icon, .ic-btn .ic-icon { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.ic-btn.ic-btn-primary { background: var(--ic-blue); border-color: var(--ic-blue); color: #fff; }
.ic-btn.ic-btn-primary:hover { background: var(--ic-blue-hover); border-color: var(--ic-blue-hover); }
.ic-btn.ic-btn-primary:active { background: var(--ic-blue-active); }
.ic-btn.ic-btn-secondary { background: #fff; border-color: #c4c9d0; color: var(--ic-ink); }
.ic-btn.ic-btn-secondary:hover { background: var(--ic-subtle); border-color: #9aa1aa; }
.ic-btn.ic-btn-secondary .ic-btn-icon { color: var(--ic-blue); }
.ic-btn.ic-btn-danger { background: var(--ic-err); border-color: var(--ic-err); color: #fff; }
.ic-btn.ic-btn-danger:hover { background: #912018; border-color: #912018; }
.ic-btn.ic-btn-link { width: auto; height: auto; padding: 4px 2px; background: none; border: 0; color: var(--ic-blue); font-weight: 600; }
.ic-btn.ic-btn-link:hover { text-decoration: underline; }
.ic-btn[disabled], .ic-btn:disabled { opacity: .55; cursor: not-allowed; }
.ic-btn-block { width: 100%; }

/* Busy: label fades, a spinner takes its place. */
.ic-btn.is-busy { pointer-events: none; }
.ic-btn.is-busy > * { visibility: hidden; }
.ic-btn.is-busy::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ic-spin .7s linear infinite;
}
input.ic-btn.is-busy { color: transparent; }
input.ic-btn-primary.is-busy::after { border-color: #fff; border-right-color: transparent; }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ic-btn.is-busy::after { animation-duration: 2s; } }

.ic-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ic-actions-row { flex-direction: row; }
.ic-actions-row > * { flex: 1; }
.ic-actions form { margin: 0; }

.ic-link-btn, button.ic-link-btn {
    padding: 2px;
    border: 0;
    background: none;
    font: 600 14px/1.4 var(--ic-font);
    color: var(--ic-blue);
    cursor: pointer;
}
.ic-link-btn:hover:not(:disabled) { text-decoration: underline; }
.ic-link-btn:disabled { color: var(--ic-muted); cursor: default; font-weight: 500; }
.ic-another-way { margin: 16px 0 0; text-align: center; }

/* "or" divider between password sign-in and passkey sign-in. */
.ic-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px;
    font-size: 13px;
    color: var(--ic-muted);
}
.ic-or::before, .ic-or::after { content: ""; flex: 1; height: 1px; background: var(--ic-line); }

/* Links row under a step's primary button (Resend / Back to sign in). */
.ic-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.ic-links-center { justify-content: center; }
.ic-links form { margin: 0; }
.ic-muted { color: var(--ic-muted); }

/* One-time code input: large spaced digits. */
.ic-code, input.ic-code {
    height: 56px;
    font: 600 26px/56px var(--ic-mono);
    letter-spacing: .4em;
    text-indent: .4em;
    text-align: center;
}
.ic-code::placeholder { color: #c3c7cc; letter-spacing: .4em; }

/* ---- Lists: choose a method, OTP devices, passkeys, consent ------------- */
.ic-choice-list, .ic-otp-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.ic-choice, button.ic-choice, label.ic-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 14px;
    border: 1px solid #c4c9d0;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}
.ic-choice:hover { border-color: var(--ic-blue); background: #f8fbff; }
.ic-choice-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--ic-blue-tint);
    color: var(--ic-blue);
}
.ic-choice-body { flex: 1; min-width: 0; }
.ic-choice-title { display: block; font-size: 15px; font-weight: 600; color: var(--ic-ink); }
.ic-choice-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--ic-muted); }
.ic-choice-arrow { color: var(--ic-muted); }
.ic-otp-list input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.ic-otp-list input[type=radio]:checked + label.ic-choice { border-color: var(--ic-blue); box-shadow: inset 0 0 0 1px var(--ic-blue); background: #f8fbff; }
.ic-otp-list input[type=radio]:focus-visible + label.ic-choice { box-shadow: var(--ic-focus); }

.ic-bullets { margin: 0 0 16px; padding: 0 0 0 20px; font-size: 14px; color: var(--ic-text); }
.ic-bullets li { margin: 4px 0; }
.ic-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: ic-step; }
.ic-steps > li { position: relative; margin: 0 0 14px; padding-left: 36px; font-size: 14px; }
.ic-steps > li::before {
    counter-increment: ic-step;
    content: counter(ic-step);
    position: absolute; left: 0; top: -1px;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ic-blue-tint); color: var(--ic-blue);
    font-size: 13px; font-weight: 700;
}
.ic-panel { margin: 0 0 16px; padding: 14px; border: 1px solid var(--ic-line); border-radius: 12px; background: var(--ic-subtle); font-size: 14px; }
.ic-qr { display: block; margin: 8px auto; width: 176px; height: 176px; border-radius: 8px; background: #fff; }
.ic-secret { display: block; margin-top: 6px; font: 600 15px/1.5 var(--ic-mono); color: var(--ic-ink); word-break: break-all; }
.ic-terms { max-height: 280px; overflow: auto; margin: 0 0 16px; padding: 14px; border: 1px solid var(--ic-line); border-radius: 12px; font-size: 14px; }

/* Social / identity providers. */
.ic-social { margin-top: 20px; }
.ic-social h2, .ic-social h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ic-muted); text-align: center; }
.ic-social ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ---- Small screens ---------------------------------------------------- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    /* The card sits in the middle of the phone, not pinned to the top: the shell is the full
       dynamic viewport height (100dvh follows the browser bars) and centers it, padded clear of
       the notch and home indicator. A card taller than the screen starts at the top padding and
       scrolls (safe center never pushes it above the fold). */
    .ic-shell {
        align-items: center; align-items: safe center;
        padding: max(20px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
                 max(20px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    }
    .ic-card { padding: 24px 20px 22px; border-radius: 14px; }
    /* thumb-sized controls: 44px fields and buttons, 44px-tall text links */
    .ic-card { --ic-control-h: 44px; }
    .ic-link-btn, button.ic-link-btn, .ic-links a, .ic-forgot, .ic-card-foot a { display: inline-flex; align-items: center; min-height: 44px; }
    .ic-card-top { margin-bottom: 16px; }
    .ic-title { font-size: 20px; }
    .ic-actions-row { flex-direction: column; }
    .ic-row { flex-wrap: wrap; }
}

/* ---- Base-template compatibility ---------------------------------------
   Base templates rendered through our layout with kc* classes mapped to ic-*. These rules
   tidy the few structures they add that have no ic-* class of their own. */
#kc-form-buttons, .ic-actions { clear: both; }
#kc-form-buttons > .ic-btn + .ic-btn, #kc-form-buttons > input + input { margin-top: 10px; }
.ic-body .ic-field > .ic-input-wrap:empty { display: none; }
.ic-body .pf-v5-c-form__group-label, .ic-body .subtitle { display: block; }
.ic-body .required { color: var(--ic-err); }
.ic-body label[for] .required { margin-left: 2px; }
#kc-info-message, #kc-error-message, #kc-page-expired { text-align: center; }
.instruction { font-size: 14px; color: var(--ic-text); }
.ic-code-list, .kc-recovery-codes-list { margin: 0 0 16px; padding: 14px 18px; columns: 2; border-radius: 12px; background: var(--ic-subtle); font: 600 15px/1.8 var(--ic-mono); list-style: none; }
.ic-body hr { border: 0; border-top: 1px solid var(--ic-line); margin: 16px 0; }
.ic-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ic-body pre, .ic-body code { font-family: var(--ic-mono); font-size: 13px; }
#kc-select-credential-form .ic-choice-list, #kc-user-verify-device-user-code-form .ic-input { text-align: center; }
/* Base's "Try another way"/restart tooltips when a base template renders them itself. */
.kc-tooltip-text { display: none; }

/* Label + required marker row used by base user-profile fields. */
.ic-label-row { display: flex; align-items: baseline; gap: 3px; margin: 0 0 6px; }
.ic-label-row .ic-label, .ic-label-row label { margin: 0; }
.ic-input-wrap { position: relative; }
.ic-field-error, .ic-field .ic-field-error { display: flex; }

/* CSS icons for base templates (<i class="ic-i ic-i-...">). */
.ic-i {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--ic-i) center / contain no-repeat;
    mask: var(--ic-i) center / contain no-repeat;
}
.ic-i-eye { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.ic-i-eye-off { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M10.6 5.6A9.6 9.6 0 0 1 12 5.5C18 5.5 21.5 12 21.5 12a17 17 0 0 1-3 3.8M6.6 7.1C4 8.9 2.5 12 2.5 12S6 18.5 12 18.5c1.7 0 3.2-.5 4.4-1.2M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.ic-i-key { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='12' r='4'/%3E%3Cpath d='M11.5 12H21M17.5 12v3M20.5 12v2.5'/%3E%3C/svg%3E"); }
.ic-i-lock { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E"); }
.ic-i-phone { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.ic-i-shield { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5.5c0 4.3 3 7.9 7 9.5 4-1.6 7-5.2 7-9.5V6z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/svg%3E"); }
.ic-i-chevron { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
.ic-i-undo { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E"); }
.ic-i-error, .ic-i-warning, .ic-i-success, .ic-i-info { --ic-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }

/* ---- Misc helpers ---- */
.ic-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic-check-wrap { margin: 4px 0 12px; }
.ic-check-wrap #kc-form-options, .ic-check-wrap .ic-form-options-inner { margin: 0; }
.ic-help-error { color: var(--ic-err); }
.ic-mt { margin-top: 12px; }
.ic-forgot { font-weight: 500; white-space: nowrap; }
.ic-client-logo { display: block; max-height: 48px; margin: 0 auto 12px; }
.ic-consent-list { padding-left: 34px; }
.ic-spinner { width: 32px; height: 32px; margin: 4px auto 16px; border: 3px solid var(--ic-blue-tint); border-top-color: var(--ic-blue); border-radius: 50%; animation: ic-spin .8s linear infinite; }
input.ic-secret { text-align: center; }
#kc-page-expired, #kc-logout-confirm, #kc-error-message, #kc-info-message, #kc-sms-code, #kc-passkey-register, #kc-passkey-error { text-align: center; }
#kc-passkey-register .ic-field { text-align: left; }
.ic-panel.ic-bullets { padding: 12px 14px 12px 34px; }
@media (max-width: 480px) {
    .ic-actions-row > * { flex: none; }
    .ic-code-list { columns: 1; }
}
