/* ============================================================
   SapphireUno login theme ("uno")
   Two-panel layout: dark brand panel (left) + light form card (right)
   Parent: keycloak.v2 (PatternFly v5)
   ============================================================ */

:root {
    --uno-ink: #0B0713;
    --uno-ink-soft: #171024;
    --uno-paper: #FBFAFC;
    --uno-purple: #00A9E0;
    --uno-violet: #0089C7;
    --uno-magenta: #F7941D;
    --uno-orange: #F7941D;
    --uno-text-dark: #1A1226;
    --uno-text-dim: #6B6478;
    --uno-text-on-ink: #EDE9F5;
    --uno-text-on-ink-dim: #A79FBB;
    --uno-line: #E6E2EC;
    --uno-focus: #00A9E0;
    --uno-error: #E11D48;
    --uno-error-soft: rgba(225, 29, 72, .10);
    --uno-radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.login-pf, .login-pf body {
    height: 100%;
    overflow: hidden;
    background: #FFFFFF;
}

.login-pf body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--uno-text-dark);
}

/* ---------- SHELL ---------- */
.uno-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ---------- BRAND PANEL ---------- */
/* Niva Bupa campaign banner: fills the panel, letterboxed on white so the */
/* banner's own white background reads as seamless with the panel behind it. */
.uno-brand {
    position: relative;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.uno-brand-banner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ---------- FORM PANEL ---------- */
.uno-panel {
    background: var(--uno-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 48px) clamp(20px, 4vw, 40px);
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.uno-card { width: 100%; max-width: 400px; }

.uno-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.uno-card-title,
h1#kc-page-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(21px, 2.4vh + 1vw, 26px);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--uno-text-dark);
    line-height: 1.2;
}

.uno-hint { margin-top: 8px; font-size: 14.5px; color: var(--uno-text-dim); }

.uno-card-body { margin-top: clamp(18px, 3vh, 28px); }

/* Locale selector */
.uno-locale { flex-shrink: 0; }
.uno-locale select {
    border: 1.5px solid var(--uno-line);
    border-radius: 8px;
    background: #fff;
    color: var(--uno-text-dim);
    font: inherit;
    font-size: 12.5px;
    padding: 4px 8px;
}

/* ---------- FORM CONTROLS ---------- */
.uno-card .pf-v5-c-form__label-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--uno-text-dark);
}

.uno-card .pf-v5-c-form__group { margin-bottom: clamp(4px, 1vh, 10px); }

/* Input frame (PF v5 wraps inputs in span.pf-v5-c-form-control) */
.uno-card .pf-v5-c-form-control {
    --pf-v5-c-form-control--BorderWidth: 0;
    border: 1.5px solid var(--uno-line);
    border-radius: var(--uno-radius);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: none;
    outline: none;
}

.uno-card .pf-v5-c-form-control > input,
.uno-card input.pf-v5-c-form-control,
.uno-card .pf-v5-c-form-control > select,
.uno-card .pf-v5-c-form-control > textarea {
    height: 45px;
    padding: 0 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: var(--uno-text-dark);
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
}

.uno-card input.pf-v5-c-form-control {
    background: #fff;
    border: 1.5px solid var(--uno-line) !important;
    border-radius: var(--uno-radius);
}

.uno-card .pf-v5-c-form-control:focus-within,
.uno-card input.pf-v5-c-form-control:focus {
    border-color: var(--uno-focus);
    box-shadow: 0 0 0 3px rgba(0, 169, 224, .14);
}

/* Error state */
.uno-card .pf-v5-c-form-control.pf-m-error,
.uno-card input.pf-v5-c-form-control[aria-invalid="true"] {
    border-color: var(--uno-error);
}

.uno-card .pf-v5-c-form-control.pf-m-error:focus-within {
    box-shadow: 0 0 0 3px var(--uno-error-soft);
}

.uno-card .pf-v5-c-form-control__icon.pf-m-status,
.uno-card .pf-v5-c-helper-text__item-text.pf-m-error,
.uno-card .pf-m-error .pf-v5-c-helper-text__item-text,
.uno-card span.error {
    color: var(--uno-error);
    font-size: 12.5px;
    font-weight: 500;
}

/* Password input group: input + eye toggle rendered as one field */
.uno-card .pf-v5-c-input-group .pf-v5-c-input-group__item.pf-m-fill .pf-v5-c-form-control {
    border-radius: var(--uno-radius) 0 0 var(--uno-radius);
    border-right: 0;
}

.uno-card .pf-v5-c-input-group .pf-v5-c-button.pf-m-control {
    height: 100%;
    min-height: 48px;
    border: 1.5px solid var(--uno-line);
    border-left: 0;
    border-radius: 0 var(--uno-radius) var(--uno-radius) 0;
    background: #fff;
    color: var(--uno-text-dim);
    cursor: pointer;
    transition: color .15s;
}

.uno-card .pf-v5-c-input-group .pf-v5-c-button.pf-m-control:hover { color: var(--uno-purple); }
.uno-card .pf-v5-c-input-group .pf-v5-c-button.pf-m-control::after { border: none; }

/* Helper row: "Keep me signed in" + "Forgot password?" */
.uno-card .pf-v5-c-form__helper-text { margin-top: 10px; }

.uno-card .pf-v5-c-helper-text {
    font-size: 13.5px;
    align-items: center;
}

.uno-card .pf-v5-c-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.uno-card .pf-v5-c-check__input {
    accent-color: var(--uno-purple);
    width: 16px;
    height: 16px;
}

.uno-card .pf-v5-c-check__label {
    color: var(--uno-text-dim);
    font-size: 13.5px;
    cursor: pointer;
}

/* Links */
.uno-card a {
    color: var(--uno-purple);
    text-decoration: none;
    font-weight: 500;
}

.uno-card a:hover { text-decoration: underline; }

/* ---------- BUTTONS ---------- */
.uno-card .pf-v5-c-button.pf-m-primary {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--uno-radius);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(92deg, var(--uno-purple) 0%, var(--uno-magenta) 100%);
    box-shadow: 0 8px 20px -8px rgba(0, 137, 199, .45);
    transition: transform .12s, box-shadow .12s, filter .12s;
    margin-top: clamp(8px, 1.5vh, 14px);
}

.uno-card .pf-v5-c-button.pf-m-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    background: linear-gradient(92deg, var(--uno-purple) 0%, var(--uno-magenta) 100%);
}

.uno-card .pf-v5-c-button.pf-m-primary:active { transform: translateY(0); }

.uno-card .pf-v5-c-button.pf-m-primary:focus-visible {
    outline: 3px solid rgba(0, 169, 224, .4);
    outline-offset: 2px;
}

.uno-card .pf-v5-c-button.pf-m-primary::after { border: none; }

/* Secondary buttons: SSO / social providers / resend / try another way */
.uno-card .pf-v5-c-button.pf-m-secondary,
.uno-card a.pf-v5-c-button.pf-m-secondary {
    background: #fff;
    border: 1.5px solid var(--uno-line);
    border-radius: var(--uno-radius);
    color: var(--uno-text-dark);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    min-height: 48px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color .15s, background .15s;
    text-decoration: none;
}

.uno-card .pf-v5-c-button.pf-m-secondary:hover,
.uno-card a.pf-v5-c-button.pf-m-secondary:hover {
    border-color: #CFC8DC;
    background: #FAF8FD;
    text-decoration: none;
}

.uno-card .pf-v5-c-button.pf-m-secondary::after { border: none; }

/* ---------- SOCIAL PROVIDERS ---------- */
/* "or" divider band */
.uno-card .pf-v5-c-login__main-footer-band {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(14px, 2.5vh, 24px) 0 0;
    color: var(--uno-text-dim);
    font-size: 12.5px;
    padding: 0;
    text-align: center;
}

.uno-card .pf-v5-c-login__main-footer-band::before,
.uno-card .pf-v5-c-login__main-footer-band::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--uno-line);
}

/* the info band (#kc-info) should not look like a divider */
.uno-card #kc-info.pf-v5-c-login__main-footer-band { display: block; }
.uno-card #kc-info.pf-v5-c-login__main-footer-band::before,
.uno-card #kc-info.pf-v5-c-login__main-footer-band::after { display: none; }

.uno-card #kc-info {
    margin-top: clamp(18px, 3.5vh, 36px);
    font-size: 13.5px;
    color: var(--uno-text-dim);
    text-align: center;
}

.uno-card #kc-social-providers { margin-top: clamp(14px, 2.5vh, 24px); }

.uno-card #kc-social-providers ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uno-card #kc-social-providers a.pf-v5-c-button {
    width: 100%;
    justify-content: center !important;
    gap: 10px;
}

.uno-card #kc-social-providers svg {
    height: 17px;
    width: 17px;
    filter: none;
}

.uno-card #kc-social-providers .pf-v5-u-m-auto { margin: 0 !important; }

/* Neutralize browser autofill yellow (Chrome + Firefox) */
.uno-card input:-webkit-autofill,
.uno-card input:-webkit-autofill:hover,
.uno-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--uno-text-dark);
    caret-color: var(--uno-text-dark);
    transition: background-color 9999s ease-in-out 0s;
}

.uno-card input:autofill {
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--uno-text-dark);
}

/* ---------- ALERTS ---------- */
.uno-card .pf-v5-c-alert {
    border: 0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin: clamp(10px, 2vh, 16px) 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    grid-template-columns: none;
}

.uno-card .pf-v5-c-alert.pf-m-danger { background: var(--uno-error-soft); color: var(--uno-error); }
.uno-card .pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__icon,
.uno-card .pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__title { color: var(--uno-error); }

.uno-card .pf-v5-c-alert.pf-m-success { background: #E7F8EE; color: #157347; }
.uno-card .pf-v5-c-alert.pf-m-success .pf-v5-c-alert__icon,
.uno-card .pf-v5-c-alert.pf-m-success .pf-v5-c-alert__title { color: #157347; }

.uno-card .pf-v5-c-alert.pf-m-warning { background: #FFF6E8; color: #B76E00; }
.uno-card .pf-v5-c-alert.pf-m-warning .pf-v5-c-alert__icon,
.uno-card .pf-v5-c-alert.pf-m-warning .pf-v5-c-alert__title { color: #B76E00; }

.uno-card .pf-v5-c-alert.pf-m-info { background: #E5F6FD; color: var(--uno-purple); }
.uno-card .pf-v5-c-alert.pf-m-info .pf-v5-c-alert__icon,
.uno-card .pf-v5-c-alert.pf-m-info .pf-v5-c-alert__title { color: var(--uno-purple); }

/* ---------- CARD FOOTER ---------- */
.uno-card-foot {
    margin-top: clamp(18px, 3.5vh, 36px);
    font-size: 13.5px;
    color: var(--uno-text-dim);
    text-align: center;
}

.uno-secure {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #9A93A8;
    flex-wrap: wrap;
    text-align: center;
}

.uno-secure svg { width: 13px; height: 13px; stroke: #9A93A8; flex-shrink: 0; }

/* ---------- MISC / KEYCLOAK PAGES ---------- */
.uno-card .pf-v5-c-form { margin-top: 0; }

/* Disabled buttons (e.g. OTP resend while counting down) */
.uno-card .pf-v5-c-button:disabled,
.uno-card .pf-v5-c-button.pf-m-aria-disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* OTP resend counter */
.uno-card #resendBtn { cursor: pointer; padding: 0 1rem; }
.uno-card #counter { font-size: 12.5px; color: var(--uno-text-dim); }

/* Recovery codes */
#kc-recovery-codes-list { columns: 2; }
#certificate_subjectDN { overflow-wrap: break-word; }

/* Tooltip (restart login) */
.kc-login-tooltip { position: relative; display: inline-block; }

.kc-login-tooltip .kc-tooltip-text {
    top: -3px;
    left: 160%;
    background-color: var(--uno-ink);
    visibility: hidden;
    color: #fff;
    min-width: 130px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    padding: 5px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
    font-size: 12px;
    z-index: 10;
}

.kc-login-tooltip:hover .kc-tooltip-text { visibility: visible; opacity: 0.9; }

.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--uno-ink) transparent transparent;
}

/* ---------- MOTION / RESPONSIVE ---------- */
@media (prefers-reduced-motion: reduce) {
    .uno-card .pf-v5-c-button.pf-m-primary:hover { transform: none; }
}

@media (max-width: 960px) {
    .uno-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

    .uno-brand {
        height: auto;
        max-height: 34vh;
    }

    .uno-panel {
        height: 100%;
        padding: clamp(16px, 3vh, 32px) 20px;
        align-items: flex-start;
    }

    .uno-card { margin: auto 0; }
}

@media (max-width: 960px) and (max-height: 560px) {
    .uno-brand { display: none; }
    .uno-shell { grid-template-rows: 1fr; }
}

/* Authenticator verification page */
.uno-otp-intro { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--uno-text-dim); }
.uno-card #kc-info a { font-weight: 600; }
#otp { letter-spacing: 0.35em; font-size: 20px; text-align: center; }
#otp::placeholder { letter-spacing: 0.35em; opacity: .35; }

/* Guidance panel (forgot password / authenticator pages) */
.uno-guide { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.uno-guide-block { border: 1px solid #E4E0EC; border-radius: 10px; padding: 14px 16px; background: #FAF9FD; }
.uno-guide-note { border-left: 4px solid #C8102E; background: #FFF7F8; }
.uno-guide h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1F1A2E; }
.uno-guide p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--uno-text-dim); }
.uno-guide a { font-weight: 600; }
.uno-guide a[href^="http"] { overflow-wrap: anywhere; }
.uno-guide a[href^="mailto"] { white-space: nowrap; }
.uno-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.uno-steps li { counter-increment: s; position: relative; padding-left: 30px; font-size: 13px; line-height: 1.5; color: var(--uno-text-dim); }
.uno-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #1F1A2E; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.uno-steps strong { display: block; color: #1F1A2E; font-weight: 600; }
.uno-steps span { display: block; }

/* Left-side guidance variant */
.uno-brand-guide { background: #FFFFFF; align-items: center; justify-content: center; overflow-y: auto; }
.uno-guide-wrap { width: 100%; max-width: 560px; padding: clamp(24px, 5vh, 56px) clamp(24px, 4vw, 56px); }
.uno-guide-logo { height: 56px; width: auto; display: block; margin-bottom: 8px; }
.uno-brand-guide .uno-guide { margin-top: 20px; gap: 16px; }
.uno-brand-guide .uno-guide-block { background: #fff; padding: 18px 20px; }
.uno-brand-guide .uno-guide-note { background: #FFF7F8; }
.uno-brand-guide .uno-guide h3 { font-size: 15px; }
.uno-brand-guide .uno-guide p, .uno-brand-guide .uno-steps li { font-size: 14px; }

@media (max-width: 960px) {
    .uno-shell.uno-has-guide { height: auto; min-height: 100dvh; overflow: visible; }
    .uno-shell.uno-has-guide .uno-brand-guide { order: 2; max-height: none; height: auto; }
    .uno-shell.uno-has-guide .uno-panel { order: 1; height: auto; }
}
@media (max-width: 960px) and (max-height: 560px) {
    .uno-brand.uno-brand-guide { display: flex; }
}

/* Guidance panel: same white background and fonts as the sign-in page */
.uno-brand-guide, .uno-brand-guide .uno-guide { font-family: 'Inter', system-ui, sans-serif; color: var(--uno-text-dark); }
.uno-brand-guide .uno-guide-block { background: #FAFAFC; border-color: var(--uno-line); }
.uno-brand-guide .uno-guide-note { background: #FFF7F8; }
.uno-guide a { color: var(--uno-purple); text-decoration: none; }
.uno-guide a:hover { text-decoration: underline; }

/* ---------- MOBILE / TABLET (final overrides): whole page scrolls, banner on top, form below ---------- */
@media (max-width: 960px) {
    html.login-pf, .login-pf body { height: auto; min-height: 100%; overflow: auto; }
    .uno-shell { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
    .uno-brand { height: auto; max-height: none; flex: none; }
    .uno-brand-banner { width: 100%; height: auto; max-height: 38vh; }
    .uno-panel { height: auto; flex: 1 0 auto; overflow: visible; align-items: flex-start; padding: 20px 16px 28px; }
    .uno-card { max-width: 440px; margin: 0 auto; }
    .uno-shell.uno-has-guide .uno-panel { order: 1; }
    .uno-shell.uno-has-guide .uno-brand-guide { order: 2; }
    .uno-guide-wrap { padding: 20px 16px 28px; }
    .uno-guide-logo { height: 44px; }
}
@media (max-width: 480px) {
    .uno-card input, .uno-card select { font-size: 16px; }   /* stops iOS zoom-on-focus */
    .uno-card-title, h1#kc-page-title { font-size: 22px; }
    .uno-card .pf-v5-c-button { width: 100%; }
}

.uno-note-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.uno-note-list li { font-size: 13px; line-height: 1.55; color: var(--uno-text-dim); }
.uno-brand-guide .uno-note-list li { font-size: 14px; }
.uno-note-list strong { color: #1F1A2E; font-weight: 600; }

/* ---------- Motion line under the campaign banner (login pages) ---------- */
.uno-brand:not(.uno-brand-guide) { flex-direction: column; justify-content: center; }
.uno-brand:not(.uno-brand-guide) .uno-brand-banner { width: 100%; height: auto; max-height: 88%; object-fit: contain; object-position: top center; flex-shrink: 0; }
.uno-flowfield { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px clamp(24px, 5vw, 56px) clamp(16px, 3vh, 32px); }
.uno-flowfield svg { width: 100%; height: 100%; max-width: 620px; display: block; }
.uno-node-label { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; font-weight: 700; fill: var(--uno-text-dark); }
.uno-node-sub { font-family: 'Inter', system-ui, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; fill: var(--uno-orange); }
.uno-pulse { opacity: .95; }
@media (prefers-reduced-motion: reduce) { .uno-pulse animateMotion { display: none; } }
@media (max-width: 960px) {
    .uno-brand:not(.uno-brand-guide) .uno-brand-banner { max-height: 38vh; }
    .uno-flowfield { height: 100px; flex: none; padding: 0 16px 8px; }
    .uno-flowfield .uno-node-label, .uno-flowfield .uno-node-sub { display: none; }
}

/* ---------- QR (authenticator registration) page ---------- */
#kc-totp-settings { margin: 0 0 18px 18px; padding: 0; font-size: 14.5px; color: var(--uno-text-dim); }
#kc-totp-settings li { margin-bottom: 12px; padding-left: 4px; }
#kc-totp-settings p { margin: 0 0 8px; }
#kc-totp-secret-qr-code { display: block; margin: 8px auto; max-width: 190px; height: auto; }

/* QR page links: clear spacing and a proper tap area on desktop and mobile */
#mode-manual, #mode-barcode { display: inline-block; margin: 6px 0 4px; padding: 6px 0; font-weight: 600; }
#kc-totp-secret-key { display: block; padding: 10px 12px; background: #F3F3F6; border-radius: 8px; font-family: Consolas, monospace; letter-spacing: .08em; word-break: break-all; }
@media (max-width: 480px) { #kc-totp-settings { margin-left: 16px; } #mode-manual, #mode-barcode { padding: 10px 0; } }

/* ---------- Motion line: thin, crisp, edge to edge ---------- */
.uno-flowfield { padding: 4px 0 clamp(14px, 3vh, 30px); }
.uno-flowfield svg { max-width: none; width: 100%; height: auto; max-height: 100%; }
.uno-node-label { font-size: 12px; font-weight: 600; }
.uno-node-sub { font-size: 8.5px; letter-spacing: 1.5px; }

/* ---------- Bug fix: content is never clipped at the top (safe centring) ---------- */
.uno-panel { align-items: flex-start; }
.uno-panel .uno-card { margin: auto; }
.uno-brand-guide { align-items: flex-start; }
.uno-guide-wrap { margin: auto; }

/* ---------- Fit the screen at 100% zoom: compact layout on shorter screens ---------- */
#kc-totp-secret-qr-code { display: block; margin: 6px auto 2px; }
@media (max-height: 860px) {
    .uno-panel { padding-top: 16px; padding-bottom: 16px; }
    .uno-guide-wrap { padding: 18px 28px; }
    .uno-guide-logo { height: 40px; }
    .uno-brand-guide .uno-guide { margin-top: 10px; gap: 10px; }
    .uno-brand-guide .uno-guide-block { padding: 11px 15px; }
    .uno-brand-guide .uno-guide h3 { font-size: 13.5px; margin-bottom: 6px; }
    .uno-brand-guide .uno-guide p, .uno-brand-guide .uno-steps li, .uno-brand-guide .uno-note-list li { font-size: 12.5px; line-height: 1.45; }
    .uno-steps { gap: 7px; }
    .uno-card .pf-v5-c-alert { padding: 8px 12px; margin-bottom: 10px; }
    #kc-totp-secret-qr-code { max-width: 150px; }
    #kc-totp-settings { font-size: 13.5px; margin-bottom: 10px; }
    #kc-totp-settings li { margin-bottom: 6px; }
    .uno-card .pf-v5-c-form__group { margin-bottom: 10px; }
    .uno-secure { margin-top: 10px; }
}
@media (max-height: 700px) {
    .uno-guide-wrap { padding: 12px 24px; }
    .uno-guide-logo { height: 32px; }
    .uno-brand-guide .uno-guide { gap: 8px; }
    .uno-brand-guide .uno-guide-block { padding: 9px 13px; }
    .uno-brand-guide .uno-guide p, .uno-brand-guide .uno-steps li, .uno-brand-guide .uno-note-list li { font-size: 11.5px; line-height: 1.4; }
    .uno-steps { gap: 5px; }
    #kc-totp-secret-qr-code { max-width: 124px; }
    #kc-totp-settings { font-size: 12.5px; }
    .uno-card .pf-v5-c-form-control > input, .uno-card input.pf-v5-c-form-control, .uno-card #totp { min-height: 40px; }
    .uno-card .pf-v5-c-button.pf-m-primary, .uno-card #saveTOTPBtn { min-height: 42px; }
}

/* ---------- Banner and motion line sit together (no big gap) ---------- */
.uno-brand:not(.uno-brand-guide) .uno-brand-banner { flex: 0 1 auto; min-height: 0; max-height: none; object-fit: contain; object-position: center bottom; }
.uno-flowfield { flex: none; align-items: center; height: clamp(120px, 25vh, 210px); padding: 0 0 clamp(8px, 2vh, 20px); }
.uno-flowfield svg { height: 100%; }
@media (max-width: 960px) {
    .uno-brand:not(.uno-brand-guide) .uno-brand-banner { max-height: 38vh; }
    .uno-flowfield { height: 90px; }
}
