/* Branding halaman anonim (login, lost password, break-glass) plugin idssso.
 *
 * Layout login (kiri: form di latar putih; kanan: panel navy berisi tagline, logo IDSurvey dan ilustrasi
 * animasi) hanya aktif bila form login (#idssso-login) dirender oleh hook DISPLAY_LOGIN, lewat selector
 * :has(). Halaman anonim lain (lost password, break-glass) tetap memakai layout GLPI, hanya logonya diganti.
 *
 * Path aset relatif terhadap file ini (/plugins/idssso/css/) agar tetap benar bila GLPI
 * dipasang di sub-path. */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* ---------- Logo pada halaman anonim yang memakai layout GLPI ---------- */
.page-anonymous .glpi-logo {
    content: url("../pics/pratic-blue.png");
    width: 240px;
    height: 56px;
    object-fit: contain;
}

/* ---------- Token ---------- */
.welcome-anonymous:has(.idssso-login) {
    --idssso-navy: #123761;
    --idssso-navy-hover: #0c2a4b;
    --idssso-navy-deep: #0b2442;
    --idssso-teal: #00ada6;
    --idssso-teal-light: #a9ece8;
    --idssso-ink: #0f1e33;
    --idssso-ink-soft: #1e2b3c;
    --idssso-muted: #5b6b7f;
    --idssso-faint: #7a8799;
    --idssso-line: #dbe2ea;
    --idssso-line-soft: #e3e9f0;
    --idssso-link: #0b5c99;
    --idssso-danger: #c0362c;
    --idssso-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Halaman ---------- */
.welcome-anonymous:has(.idssso-login) {
    min-height: 100vh;
    background: #ffffff;
    color: var(--idssso-ink);
}

/* ---------- Netralkan kerangka kartu GLPI ---------- */
.welcome-anonymous:has(.idssso-login) .page-anonymous > .flex-fill {
    padding: 0 !important; /* menimpa utility .py-4 .mt-4 GLPI */
    margin: 0 !important;
}
.welcome-anonymous:has(.idssso-login) .page-anonymous .container-tight {
    width: 100%;
    max-width: none !important; /* menimpa inline style="max-width: 60rem" dari page_card_notlogged */
    padding: 0 !important; /* menimpa utility .py-6 GLPI */
}
/* Logo GLPI & copyright GLPI diganti logo Pratic dan footer plugin. */
.welcome-anonymous:has(.idssso-login) .page-anonymous .container-tight > .text-center:first-child,
.welcome-anonymous:has(.idssso-login) .page-anonymous .container-tight > .text-muted {
    display: none;
}
.welcome-anonymous:has(.idssso-login) .main-content-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
}
.welcome-anonymous:has(.idssso-login) .main-content-card > .card-header:empty {
    display: none;
}
.welcome-anonymous:has(.idssso-login) .main-content-card .card-body {
    padding: 0;
}
.welcome-anonymous:has(.idssso-login) .main-content-card .row {
    --tblr-gutter-x: 0;
    margin: 0;
}
/* Form lokal bawaan GLPI disembunyikan (JS juga membuangnya dari DOM); login lokal ada di tab
 * "External" form plugin. Break-glass (?breakglass=1) tetap memakai form GLPI. */
.welcome-anonymous:has(.idssso-login) .main-content-card .row > .col-md-5 {
    display: none !important;
}
.welcome-anonymous:has(.idssso-login) .main-content-card .row > .col-auto {
    width: 100%;
    padding: 0 !important;
    text-align: left;
}

/* ---------- Kerangka: setinggi layar, tanpa scroll ----------
 * Di layar pendek judul+form dan ilustrasi diperkecil proporsional (zoom), lihat media query di bawah. */
.idssso-login {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    grid-template-rows: minmax(0, 1fr);
    background: #ffffff;
    font-family: var(--idssso-font);
    color: var(--idssso-ink);
    text-align: left; /* kolom hook GLPI memakai .text-center */
}
.idssso-login *,
.idssso-login *::before,
.idssso-login *::after {
    box-sizing: border-box;
}

/* ---------- Kiri: form ---------- */
.idssso-main {
    position: relative; /* acuan posisi logo Pranata */
    min-width: 0;
    min-height: 0;
    padding: 6vh 4vw 5vh;
    display: flex;
    justify-content: center;
}
.idssso-main-inner {
    width: 420px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}
/* Logo Pratic biru di latar putih (logo putih dipakai di panel/header navy).
   Pojok kiri atas kolom form, simetris dengan logo Pranata di kanan atas. */
.idssso-logo {
    position: absolute;
    top: 6vh;
    left: 32px;
    display: block;
    height: 36px;
    width: auto;
}
/* Pengganti tempat logo di alur kolom, supaya judul & form tetap di posisi semula. */
.idssso-main-inner::before {
    content: "";
    flex: none;
    height: 36px;
}
/* Logo Pranata: pojok kanan atas kolom form, satu baris dengan logo Pratic (sama-sama 36px). */
.idssso-partner {
    position: absolute;
    top: 6vh;
    right: 32px;
    display: block;
    height: 36px;
    width: auto;
}
.idssso-mid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.idssso-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}
.idssso-title {
    margin: 0;
    white-space: nowrap;
    font-family: var(--idssso-font);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.035em;
    color: var(--idssso-ink);
}
.idssso-sub {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--idssso-muted);
}
.idssso-form {
    width: 100%;
    max-width: 380px;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Tab minimalis: teks saja, pilihan aktif ditandai garis bawah (tanpa kotak/rounded). */
.idssso-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--idssso-line-soft);
}
.idssso-tab {
    height: 44px;
    min-width: 0;
    margin-bottom: -1px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--idssso-faint);
    font: 500 14.5px var(--idssso-font);
    cursor: pointer;
    transition: color .15s ease, box-shadow .15s ease;
}
.idssso-tab:hover {
    color: var(--idssso-ink);
}
.idssso-tab[aria-selected="true"] {
    color: var(--idssso-navy);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--idssso-navy);
}
.idssso-tab:focus-visible {
    outline: 2px solid var(--idssso-navy);
    outline-offset: -2px;
}

/* Kedua panel ditumpuk di sel grid yang sama: tinggi form = panel terpanjang (External), sehingga
 * form tidak berubah ukuran saat pindah tab; hanya isinya yang berganti. */
.idssso-panels {
    display: grid;
}
.idssso-panels > .idssso-panel {
    grid-area: 1 / 1;
}
.idssso-panel:not(.is-active) {
    visibility: hidden;
}
.idssso-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.idssso-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.idssso-label {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--idssso-ink-soft);
}
.idssso-input-wrap {
    position: relative;
}
.idssso-input-wrap > .ti {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--idssso-faint);
    pointer-events: none;
}
/* Selector #id: aturan legacy GLPI (css/legacy/includes/_inputs.scss) memberi semua input padding,
 * radius 4px & garis fokus lewat input:not(...)x10 (spesifisitas 0,10,1), jauh di atas .idssso-input;
 * ID menang sehingga gaya plugin tetap berlaku. */
#idssso-email.idssso-input,
#idssso-user.idssso-input,
#idssso-pass.idssso-input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px 0 44px;
    border: 1px solid var(--idssso-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--idssso-ink);
    font: 400 15px var(--idssso-font);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
#idssso-pass.idssso-input {
    padding-right: 50px;
}
#idssso-email.idssso-input::placeholder,
#idssso-user.idssso-input::placeholder,
#idssso-pass.idssso-input::placeholder {
    color: #9aa6b5;
}
#idssso-email.idssso-input:hover,
#idssso-user.idssso-input:hover,
#idssso-pass.idssso-input:hover {
    border-color: #b7c3d1;
}
#idssso-email.idssso-input:focus,
#idssso-user.idssso-input:focus,
#idssso-pass.idssso-input:focus {
    outline: none;
    border-color: var(--idssso-navy);
    box-shadow: 0 0 0 3px rgba(18, 55, 97, .14);
}
#idssso-email.idssso-input[aria-invalid="true"] {
    border-color: var(--idssso-danger);
    box-shadow: 0 0 0 3px rgba(192, 54, 44, .12);
}
.idssso-hint {
    display: none;
    margin: 0;
    font-size: 12.5px;
    color: var(--idssso-danger);
}
.idssso-hint.show {
    display: block;
}
.idssso-eye {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--idssso-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}
.idssso-eye:hover {
    background: #f1f4f8;
    color: var(--idssso-ink);
}
.idssso-eye:focus-visible {
    outline: 2px solid var(--idssso-navy);
    outline-offset: 2px;
}

.idssso-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.idssso-remember.form-check {
    margin: 0;
    min-height: 0;
    font-size: 14px;
    color: #334155;
}
.idssso-remember .form-check-input:checked {
    background-color: var(--idssso-navy);
    border-color: var(--idssso-navy);
}
.idssso-remember .form-check-input:focus {
    border-color: var(--idssso-navy);
    box-shadow: 0 0 0 3px rgba(18, 55, 97, .14);
}
.idssso-login a {
    color: var(--idssso-link);
    font-weight: 600;
    text-decoration: none;
}
.idssso-login a:hover {
    color: var(--idssso-navy);
    text-decoration: underline;
}
.idssso-lost {
    margin-left: auto;
    font-size: 14px;
}

.idssso-btn {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: var(--idssso-navy);
    color: #ffffff;
    font: 600 15px var(--idssso-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(18, 55, 97, .55);
    transition: background-color .15s ease, opacity .15s ease;
}
.idssso-btn:hover:not(:disabled) {
    background: var(--idssso-navy-hover);
}
.idssso-btn:focus-visible {
    outline: 2px solid var(--idssso-navy);
    outline-offset: 2px;
}
.idssso-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.idssso-note {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--idssso-muted);
}
.idssso-note .ti {
    flex: none;
    margin-top: 1px;
    font-size: 16px;
    color: #00857f;
}
.idssso-support {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: var(--idssso-muted);
}

.idssso-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px 18px;
    font-size: 12.5px;
    color: var(--idssso-faint);
}
.idssso-footer-logo {
    display: none; /* desktop: logo IDSurvey ada di panel kanan */
}

/* ---------- Kanan: panel navy + ilustrasi ---------- */
.idssso-show {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 0;
    margin: 16px 16px 16px 0;
    padding: 52px 56px 44px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #ffffff;
    background: linear-gradient(160deg, #1a4778 0%, var(--idssso-navy) 52%, var(--idssso-navy-deep) 100%);
}
.idssso-show-dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
            mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
}
.idssso-show-circle {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.idssso-show-circle.is-teal {
    right: -90px;
    bottom: -110px;
    width: 340px;
    height: 340px;
    background: var(--idssso-teal);
}
.idssso-show-circle.is-sky {
    left: 6%;
    bottom: 14%;
    width: 270px;
    height: 270px;
    background: rgba(156, 195, 234, .22);
}
.idssso-show-logo {
    display: none; /* hanya di header HP */
}
.idssso-show-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.idssso-show-claim {
    flex: 1;
    min-width: 0;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* Label biasa (huruf normal, tanpa jarak huruf lebar), bukan "eyebrow" kapital berwarna. */
.idssso-kicker {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
}
.idssso-tagline {
    font-size: clamp(20px, 1.6vw, 27px);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.015em;
}
.idssso-show-brand {
    flex: none;
    display: flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .45);
}
.idssso-show-brand img {
    display: block;
    height: 28px;
    width: auto;
}

/* Ilustrasi: kartu alur tiket + timeline contoh (gaya timeline GLPI). Ukuran tetap, diperkecil lewat zoom. */
.idssso-cluster {
    position: relative;
    flex: none;
    width: 644px;
    height: 526px;
    align-self: center;
    margin-block: auto;
}
.idssso-sq {
    position: absolute;
}
.idssso-sq.is-amber {
    left: 606px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #f4b54a;
    transform: rotate(14deg);
}
.idssso-sq.is-mint {
    left: 120px;
    top: 430px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--idssso-teal-light);
    transform: rotate(-12deg);
}

.idssso-steps {
    position: absolute;
    left: 0;
    top: 0;
    width: 330px;
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--idssso-ink);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.idssso-steps-title {
    font-size: 15px;
    font-weight: 700;
}
.idssso-steps-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.idssso-steps-list::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 34px;
    bottom: 34px;
    width: 2px;
    background: var(--idssso-line-soft);
}
.idssso-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    background: #ffffff;
}
.idssso-step-ic {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f6;
    color: var(--idssso-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.idssso-step-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.idssso-step-txt b {
    font-size: 13px;
    font-weight: 700;
}
.idssso-step-txt span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--idssso-muted);
}

.idssso-tkt {
    position: absolute;
    left: 314px;
    top: 170px;
    width: 330px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    color: var(--idssso-ink);
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .5);
}
.idssso-tkt-head {
    height: 56px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #eef2f6;
}
.idssso-tkt-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.idssso-tkt-id {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--idssso-navy);
}
.idssso-tkt-sample {
    padding: 1px 6px;
    border-radius: 4px;
    background: #eef2f6;
    color: var(--idssso-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}
.idssso-tkt-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.idssso-tkt-status {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff3dc;
    color: #8a5100;
    font-size: 11px;
    font-weight: 600;
}
.idssso-tkt-body {
    height: 254px;
    padding: 0 12px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.idssso-tl {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}
.idssso-tl.is-right {
    flex-direction: row-reverse;
}
.idssso-av {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #c3d8f0;
    color: var(--idssso-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
}
.idssso-av.is-sd {
    background: var(--idssso-navy);
    color: #ffffff;
}
/* Warna mengikuti timeline GLPI: deskripsi hijau, tindak lanjut abu, tugas kuning, solusi biru. */
.idssso-bub {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 6px 10px 8px;
    border: 1px solid var(--bub-line);
    border-radius: 0 8px 8px 8px;
    background: var(--bub-bg);
    color: var(--bub-ink);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.idssso-bub.is-desc { --bub-line: #87aa8a; --bub-bg: #e2f2e3; --bub-ink: #155210; --bub-meta: #6a8a6c; }
.idssso-bub.is-fup  { --bub-line: #b3b3b3; --bub-bg: #ececec; --bub-ink: #535353; --bub-meta: #8a8a8a; }
.idssso-bub.is-task { --bub-line: #e5c88c; --bub-bg: #ffe8b9; --bub-ink: #38301f; --bub-meta: #8a7448; }
.idssso-bub.is-sol  { --bub-line: #90c2d8; --bub-bg: #9fd6ed; --bub-ink: #27363b; --bub-meta: #4a6a78; }
.idssso-bub::before,
.idssso-bub::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}
.idssso-bub::before {
    left: -8px;
    top: -1px;
    border-width: 8px 0 0 8px;
    border-color: var(--bub-line) transparent transparent transparent;
}
.idssso-bub::after {
    left: -6px;
    top: 0;
    border-width: 6px 0 0 6px;
    border-color: var(--bub-bg) transparent transparent transparent;
}
.is-right > .idssso-bub {
    border-radius: 8px 0 8px 8px;
}
.is-right > .idssso-bub::before {
    left: auto;
    right: -8px;
    border-width: 8px 8px 0 0;
}
.is-right > .idssso-bub::after {
    left: auto;
    right: -6px;
    border-width: 6px 6px 0 0;
}
.idssso-bub-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--bub-meta);
}
.idssso-bub-meta .ti {
    font-size: 11px;
}
.idssso-bub-text {
    font-size: 12px;
    line-height: 1.4;
}
.idssso-tkt-foot {
    height: 48px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #eef2f6;
    background: #fafbfd;
}
.idssso-tkt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #d3dbe5;
    border-radius: 6px;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
}
.idssso-tkt-btn.is-primary {
    border-color: var(--idssso-navy);
    background: var(--idssso-navy);
    color: #ffffff;
}
.idssso-tkt-btn .ti {
    font-size: 13px;
}

/* ---------- Animasi ilustrasi (siklus 14 detik, berulang) ----------
 * Langkah alur menyala bergantian, sinkron dengan timeline: lapor (deskripsi), ditangani (tindak lanjut
 * & tugas), selesai (solusi). Pesan timeline muncul satu per satu lalu diulang. */
.idssso-steps { animation: idssso-float 6s ease-in-out infinite alternate; }
.idssso-tkt { animation: idssso-float 7s ease-in-out -3s infinite alternate; }
@keyframes idssso-float {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}
.idssso-s1 { animation: idssso-s1 14s ease-in-out infinite; }
.idssso-s2 { animation: idssso-s2 14s ease-in-out infinite; }
.idssso-s3 { animation: idssso-s3 14s ease-in-out infinite; }
.idssso-i1 { animation: idssso-i1 14s ease-in-out infinite; }
.idssso-i2 { animation: idssso-i2 14s ease-in-out infinite; }
.idssso-i3 { animation: idssso-i3 14s ease-in-out infinite; }
@keyframes idssso-s1 {
    0%, 18% { background: #f2f7fd; border-color: #c9dcf2; }
    20%, 100% { background: #ffffff; border-color: #eef2f6; }
}
@keyframes idssso-i1 {
    0%, 18% { background: #123761; color: #ffffff; }
    20%, 100% { background: #eef2f6; color: #5b6b7f; }
}
@keyframes idssso-s2 {
    0%, 18% { background: #ffffff; border-color: #eef2f6; }
    20%, 66% { background: #f2f7fd; border-color: #c9dcf2; }
    68%, 100% { background: #ffffff; border-color: #eef2f6; }
}
@keyframes idssso-i2 {
    0%, 18% { background: #eef2f6; color: #5b6b7f; }
    20%, 66% { background: #123761; color: #ffffff; }
    68%, 100% { background: #eef2f6; color: #5b6b7f; }
}
@keyframes idssso-s3 {
    0%, 66% { background: #ffffff; border-color: #eef2f6; }
    68%, 95% { background: #f2f7fd; border-color: #c9dcf2; }
    97%, 100% { background: #ffffff; border-color: #eef2f6; }
}
@keyframes idssso-i3 {
    0%, 66% { background: #eef2f6; color: #5b6b7f; }
    68%, 95% { background: #123761; color: #ffffff; }
    97%, 100% { background: #eef2f6; color: #5b6b7f; }
}
.idssso-m1 { animation: idssso-m1 14s ease-out infinite both; }
.idssso-m2 { animation: idssso-m2 14s ease-out infinite both; }
.idssso-m3 { animation: idssso-m3 14s ease-out infinite both; }
.idssso-m4 { animation: idssso-m4 14s ease-out infinite both; }
.idssso-m5 { animation: idssso-m5 14s ease-out infinite both; }
@keyframes idssso-m1 {
    0%, 3% { opacity: 0; transform: translateY(10px); max-height: 0; margin-top: 0; }
    8%, 92% { opacity: 1; transform: none; max-height: 120px; margin-top: 10px; }
    97%, 100% { opacity: 0; transform: none; max-height: 120px; margin-top: 10px; }
}
@keyframes idssso-m2 {
    0%, 19% { opacity: 0; transform: translateY(10px); max-height: 0; margin-top: 0; }
    24%, 92% { opacity: 1; transform: none; max-height: 120px; margin-top: 10px; }
    97%, 100% { opacity: 0; transform: none; max-height: 120px; margin-top: 10px; }
}
@keyframes idssso-m3 {
    0%, 35% { opacity: 0; transform: translateY(10px); max-height: 0; margin-top: 0; }
    40%, 92% { opacity: 1; transform: none; max-height: 120px; margin-top: 10px; }
    97%, 100% { opacity: 0; transform: none; max-height: 120px; margin-top: 10px; }
}
@keyframes idssso-m4 {
    0%, 51% { opacity: 0; transform: translateY(10px); max-height: 0; margin-top: 0; }
    56%, 92% { opacity: 1; transform: none; max-height: 120px; margin-top: 10px; }
    97%, 100% { opacity: 0; transform: none; max-height: 120px; margin-top: 10px; }
}
@keyframes idssso-m5 {
    0%, 67% { opacity: 0; transform: translateY(10px); max-height: 0; margin-top: 0; }
    72%, 92% { opacity: 1; transform: none; max-height: 120px; margin-top: 10px; }
    97%, 100% { opacity: 0; transform: none; max-height: 120px; margin-top: 10px; }
}

/* ---------- Pas di zoom 100% tanpa scroll (desktop) ----------
 * Lebar sempit: ilustrasi diperkecil. Layar pendek (laptop 1366x768 / 1280x720, viewport ±650px):
 * judul+form dan ilustrasi diperkecil proporsional. */
@media (min-width: 992px) and (max-width: 1499.98px) {
    .idssso-cluster { zoom: .88; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
    .idssso-cluster { zoom: .78; }
}
@media (min-width: 992px) and (max-height: 860px) {
    .idssso-mid { zoom: .9; }
    .idssso-cluster { zoom: .82; }
}
@media (min-width: 992px) and (max-height: 780px) {
    .idssso-mid { zoom: .8; }
    .idssso-cluster { zoom: .7; }
    .idssso-tagline { font-size: min(22px, 1.5vw); }
    .idssso-show { padding: 40px 48px 36px; }
}
@media (min-width: 992px) and (max-height: 700px) {
    .idssso-mid { zoom: .72; }
    .idssso-cluster { zoom: .6; }
    .idssso-show { padding: 32px 44px 30px; }
}

/* ---------- Tablet & HP (< 992px): panel navy jadi header ringkas, form di bawahnya ---------- */
@media (max-width: 991.98px) {
    .idssso-login {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }
    .idssso-show {
        order: -1;
        min-height: 176px;
        margin: 0;
        padding: 22px 24px;
        border-radius: 0 0 0 36px;
        justify-content: space-between;
        gap: 18px;
    }
    .idssso-show-dots {
        background-size: 20px 20px;
    }
    .idssso-show-circle.is-teal {
        right: -60px;
        top: 86px;
        bottom: auto;
        width: 190px;
        height: 190px;
    }
    .idssso-show-circle.is-sky,
    .idssso-show-brand,
    .idssso-cluster {
        display: none;
    }
    .idssso-show-logo {
        position: relative;
        display: block;
        align-self: flex-start;
        height: 30px;
        width: auto;
    }
    .idssso-show-claim {
        max-width: 285px;
        gap: 6px;
    }
    .idssso-kicker {
        font-size: 12.5px;
    }
    .idssso-tagline {
        font-size: 15px;
        line-height: 1.4;
        letter-spacing: 0;
    }
    .idssso-main {
        padding: 26px 24px 18px;
    }
    .idssso-main-inner {
        width: 100%;
        max-width: 460px;
        gap: 22px;
    }
    .idssso-logo,
    .idssso-main-inner::before {
        display: none; /* logo Pratic ada di header navy */
    }
    .idssso-partner {
        position: static; /* ikut alur: kanan atas, di atas judul */
        align-self: flex-end;
        height: 28px;
        margin-bottom: -8px;
    }
    .idssso-mid {
        gap: 22px;
    }
    .idssso-head {
        gap: 8px;
        text-align: left;
    }
    .idssso-title {
        font-size: 30px;
        line-height: 1.1;
        letter-spacing: -.03em;
        white-space: normal;
    }
    .idssso-sub {
        font-size: 14.5px;
    }
    .idssso-form {
        max-width: none;
    }
    .idssso-footer {
        flex-direction: column;
        gap: 10px;
        font-size: 11.5px;
        text-align: center;
    }
    .idssso-footer-logo {
        display: block;
        height: 24px;
        width: auto;
    }
}

/* Pengguna yang mematikan animasi: ilustrasi tampil diam (semua pesan timeline terlihat). */
@media (prefers-reduced-motion: reduce) {
    .idssso-steps,
    .idssso-tkt,
    .idssso-step,
    .idssso-step-ic,
    .idssso-tl {
        animation: none !important;
    }
    .idssso-tab,
    .idssso-btn,
    #idssso-email.idssso-input,
    #idssso-user.idssso-input,
    #idssso-pass.idssso-input {
        transition: none;
    }
}
