:root {
        color-scheme: light dark;
        --bg: #eaf0fb;
        --bg-2: #f4f7ff;
        --pri: #2563eb;
        --pri2: #22d3ee;
        --ok: #10b981;
        --ok-text: #047857;
        --hl: #2563eb;
        --text: #0e1630;
        --muted: #64709a;
        --line: rgba(79, 99, 200, 0.15);
        --line-strong: rgba(79, 99, 200, 0.3);
        --glass: rgba(255, 255, 255, 0.66);
        --card-a: rgba(255, 255, 255, 0.85);
        --card-b: rgba(255, 255, 255, 0.55);
        --input-bg: rgba(255, 255, 255, 0.75);
        --input-bg-focus: #ffffff;
        --ring-bg: #ffffff;
        --opt-bg: #ffffff;
        --label: #2a3560;
        --dot: rgba(79, 99, 200, 0.14);
        --shadow: 0 40px 80px -30px rgba(40, 60, 140, 0.35);
        --blob-a: 0.3;
        --blob-b: 0.22;
        --blob-c: 0.2;
        --warn: #b45309;
        --err-bg: rgba(239, 68, 68, 0.1);
        --err-line: rgba(239, 68, 68, 0.35);
        --err-text: #b91c1c;
        --info-text: #1d4ed8;
        --info-bg: rgba(37, 99, 235, 0.08);
        --info-line: rgba(37, 99, 235, 0.3);
        --done-text: #0e1630;
        --focus-ring: rgba(37, 99, 235, 0.16);
        --hover-bg: rgba(37, 99, 235, 0.1);
        --active-halo: rgba(37, 99, 235, 0.22);
        --button-shadow: rgba(37, 99, 235, 0.8);
        --button-shadow-hover: rgba(37, 99, 235, 0.95);
        --button-end: #06b6d4;
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #070c1c;
          --bg-2: #0f1730;
          --ok-text: #6ee7b7;
          --hl: #67e8f9;
          --text: #e9edff;
          --muted: #8f9bc8;
          --line: rgba(140, 160, 255, 0.16);
          --line-strong: rgba(140, 160, 255, 0.3);
          --glass: rgba(22, 30, 60, 0.62);
          --card-a: rgba(30, 40, 78, 0.6);
          --card-b: rgba(22, 30, 60, 0.4);
          --input-bg: rgba(0, 0, 0, 0.28);
          --input-bg-focus: rgba(0, 0, 0, 0.38);
          --ring-bg: #0f1730;
          --opt-bg: #0f1730;
          --label: #cbd5ff;
          --dot: rgba(255, 255, 255, 0.07);
          --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
          --blob-a: 0.34;
          --blob-b: 0.22;
          --blob-c: 0.24;
          --warn: #fcd34d;
          --err-text: #fca5a5;
          --info-text: #93c5fd;
          --info-bg: rgba(37, 99, 235, 0.14);
          --info-line: rgba(96, 165, 250, 0.35);
          --done-text: #dbe6ff;
          --focus-ring: rgba(96, 165, 250, 0.18);
          --hover-bg: rgba(96, 165, 250, 0.16);
          --active-halo: rgba(103, 232, 249, 0.22);
          --button-shadow: rgba(37, 99, 235, 0.5);
          --button-shadow-hover: rgba(37, 99, 235, 0.7);
        }
      }
      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html,
      body {
        min-height: 100%;
      }
      body {
        font-family:
          "Plus Jakarta Sans",
          system-ui,
          -apple-system,
          "Segoe UI",
          Roboto,
          sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr minmax(400px, 470px);
        gap: clamp(16px, 3vw, 48px);
        padding: clamp(16px, 2.4vw, 32px);
        position: relative;
        overflow-x: hidden;
      }

      /* ========= latar aurora biru, cyan, dan hijau ========= */
      .aurora {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
      }
      .aurora i {
        position: absolute;
        border-radius: 50%;
        filter: blur(110px);
        opacity: 0.6;
        animation: drift 20s ease-in-out infinite;
      }
      .aurora i:nth-child(1) {
        width: 560px;
        height: 560px;
        background: #6366f1;
        top: -220px;
        left: -140px;
        opacity: var(--blob-a);
      }
      .aurora i:nth-child(2) {
        width: 480px;
        height: 480px;
        background: var(--ok);
        bottom: -200px;
        left: 30%;
        opacity: var(--blob-b);
        animation-delay: -8s;
      }
      .aurora i:nth-child(3) {
        width: 420px;
        height: 420px;
        background: #06b6d4;
        top: 20%;
        right: -160px;
        opacity: var(--blob-c);
        animation-delay: -14s;
      }
      @keyframes drift {
        0%,
        100% {
          transform: translate(0, 0);
        }
        50% {
          transform: translate(50px, -40px);
        }
      }
      .noise {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.5;
        background-image: radial-gradient(var(--dot) 1px, transparent 1px);
        background-size: 26px 26px;
        mask-image: radial-gradient(ellipse at 40% 45%, #000 15%, transparent 70%);
        -webkit-mask-image: radial-gradient(ellipse at 40% 45%, #000 15%, transparent 70%);
      }

      /* ========= kolom animasi ========= */
      .stage {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 8px 0 0 clamp(4px, 1.5vw, 20px);
      }
      .brand {
        display: flex;
        align-items: center;
        gap: 14px;
      }
      .logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--pri), var(--pri2));
        display: grid;
        place-items: center;
        box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.8);
        flex: none;
      }
      .logo svg {
        width: 24px;
        height: 24px;
      }
      .brand b {
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0.5px;
        display: block;
        line-height: 1.1;
      }
      .brand small {
        color: var(--muted);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.3px;
      }

      .headline {
        margin-top: clamp(18px, 4vh, 46px);
        max-width: 700px;
      }
      .tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 2px;
        color: var(--hl);
        text-transform: uppercase;
      }
      .tag::before {
        content: "";
        width: 28px;
        height: 2px;
        background: var(--pri);
        border-radius: 2px;
      }
      .headline h1 {
        font-size: clamp(32px, 4.2vw, 56px);
        font-weight: 800;
        line-height: 1.04;
        letter-spacing: -1.5px;
        margin: 12px 0 12px;
      }
      .headline h1 span {
        background: linear-gradient(90deg, var(--pri), var(--pri2));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      .headline p {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.65;
        max-width: 520px;
      }

      .flow-wrap {
        position: relative;
        flex: 1;
        min-height: 280px;
        margin-top: 6px;
        display: flex;
        align-items: center;
      }
      svg.flow {
        width: 100%;
        height: auto;
        max-height: 52vh;
        overflow: visible;
      }
      .base {
        fill: none;
        stroke: var(--line-strong);
        stroke-width: 3;
        stroke-linecap: round;
        stroke-dasharray: 2 10;
        animation: dash 1.6s linear infinite;
      }
      @keyframes dash {
        to {
          stroke-dashoffset: -24;
        }
      }
      .prog {
        fill: none;
        stroke: url(#grad);
        stroke-width: 5;
        stroke-linecap: round;
        filter: url(#glow);
      }

      .node .halo {
        fill: transparent;
        transition: 0.5s;
      }
      .node .ring {
        fill: var(--ring-bg);
        stroke: var(--line-strong);
        stroke-width: 2;
        transition: 0.4s;
      }
      .node .num {
        fill: var(--muted);
        font-size: 15px;
        font-weight: 700;
        text-anchor: middle;
        dominant-baseline: central;
        transition: 0.4s;
      }
      .node .lbl {
        fill: var(--muted);
        font-size: 16px;
        font-weight: 600;
        text-anchor: middle;
        transition: 0.4s;
        letter-spacing: 0.3px;
      }
      .node.done .ring {
        stroke: var(--pri);
      }
      .node.done .num,
      .node.done .lbl {
        fill: var(--done-text);
      }
      .node.active .halo {
        fill: var(--active-halo);
        animation: breathe 1.6s ease-in-out infinite;
      }
      .node.active .ring {
        fill: var(--pri);
        stroke: var(--pri2);
      }
      .node.active .num {
        fill: #ffffff;
      }
      .node.active .lbl {
        fill: var(--text);
      }
      @keyframes breathe {
        0%,
        100% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.18);
        }
      }
      .node .halo {
        transform-box: fill-box;
        transform-origin: center;
      }

      .detail {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 18px 22px;
        border-radius: 22px;
        background: var(--glass);
        border: 1px solid var(--line);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 10px 30px -12px rgba(40, 60, 140, 0.28);
        max-width: 700px;
      }
      .badge {
        flex: none;
        width: 54px;
        height: 54px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        font-weight: 800;
        font-size: 20px;
        color: #ffffff;
        background: linear-gradient(135deg, var(--pri), var(--pri2));
      }
      .detail .txt {
        flex: 1;
        min-width: 0;
      }
      .detail h3 {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 3px;
      }
      .detail p {
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.5;
      }
      .detail .txt.swap {
        animation: swap 0.5s ease both;
      }
      @keyframes swap {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .dots {
        display: flex;
        gap: 6px;
        flex: none;
      }
      .dots i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--line-strong);
        transition: 0.3s;
      }
      .dots i.on {
        background: var(--pri);
        width: 22px;
        border-radius: 6px;
      }
      .copy {
        margin-top: 18px;
        font-size: 12px;
        color: var(--muted);
      }

      /* ========= kartu login ========= */
      .panel {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
      }
      .card {
        width: 100%;
        padding: 38px 36px 28px;
        border-radius: 30px;
        background: linear-gradient(160deg, var(--card-a), var(--card-b));
        border: 1px solid var(--line);
        backdrop-filter: blur(26px);
        -webkit-backdrop-filter: blur(26px);
        box-shadow:
          var(--shadow),
          inset 0 1px 0 rgba(255, 255, 255, 0.15);
        animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
      }
      @keyframes rise {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .card .top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 26px;
      }
      .status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        color: var(--ok-text);
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(16, 185, 129, 0.12);
        border: 1px solid rgba(16, 185, 129, 0.3);
      }
      .status i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--ok);
        animation: ping 2s infinite;
      }
      @keyframes ping {
        70% {
          box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
        }
        0% {
          box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
        }
      }
      .yr {
        font-size: 12px;
        font-weight: 700;
        color: var(--hl);
        letter-spacing: 1px;
      }
      .card h2 {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -0.8px;
      }
      .card .sub {
        color: var(--muted);
        font-size: 14px;
        margin: 6px 0 26px;
      }

      .field {
        margin-bottom: 16px;
      }
      .field label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--label);
        margin-bottom: 8px;
      }
      .box {
        position: relative;
        display: flex;
        align-items: center;
        height: 54px;
        border-radius: 15px;
        background: var(--input-bg);
        border: 1.5px solid var(--line);
        transition: 0.2s;
      }
      .box:hover {
        border-color: var(--line-strong);
      }
      .box:focus-within {
        border-color: var(--pri);
        box-shadow: 0 0 0 4px var(--focus-ring);
        background: var(--input-bg-focus);
      }
      .box svg.i {
        width: 19px;
        height: 19px;
        margin-left: 17px;
        color: var(--muted);
        flex: none;
        transition: 0.2s;
      }
      .box:focus-within svg.i {
        color: var(--pri);
      }
      .box input,
      .box select {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font: inherit;
        font-size: 14.5px;
        color: var(--text);
        padding: 0 14px;
        appearance: none;
        -webkit-appearance: none;
      }
      .box select {
        cursor: pointer;
        padding-right: 40px;
      }
      .box select option {
        background: var(--opt-bg);
        color: var(--text);
      }
      .box input::placeholder {
        color: var(--muted);
      }
      .chev {
        position: absolute;
        right: 16px;
        width: 18px;
        height: 18px;
        color: var(--muted);
        pointer-events: none;
      }
      .eye {
        border: 0;
        background: none;
        color: var(--muted);
        cursor: pointer;
        margin-right: 10px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        transition: 0.2s;
      }
      .eye:hover {
        color: var(--pri);
        background: var(--hover-bg);
      }
      .eye svg {
        width: 20px;
        height: 20px;
      }
      .caps {
        display: none;
        font-size: 12px;
        color: var(--warn);
        margin-top: 7px;
        font-weight: 600;
      }
      .caps.show {
        display: block;
      }

      .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 4px 0 22px;
        font-size: 13px;
      }
      .check {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--muted);
        cursor: pointer;
        user-select: none;
      }
      .check input {
        accent-color: var(--pri);
        width: 17px;
        height: 17px;
      }
      .row a {
        color: var(--hl);
        font-weight: 600;
        text-decoration: none;
      }
      .row a:hover {
        text-decoration: underline;
      }

      .btn {
        position: relative;
        width: 100%;
        height: 58px;
        border: 0;
        border-radius: 16px;
        cursor: pointer;
        overflow: hidden;
        font: inherit;
        font-weight: 700;
        font-size: 15.5px;
        color: #ffffff;
        letter-spacing: 0.3px;
        background: linear-gradient(120deg, var(--pri), var(--button-end));
        box-shadow: 0 18px 36px -14px var(--button-shadow);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: 0.25s;
      }
      .btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
        transform: translateX(-120%);
        transition: transform 0.8s;
      }
      .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 24px 40px -14px var(--button-shadow-hover);
      }
      .btn:hover::before {
        transform: translateX(120%);
      }
      .btn svg {
        width: 19px;
        height: 19px;
        transition: transform 0.25s;
      }
      .btn:hover svg {
        transform: translateX(4px);
      }
      .btn[disabled] {
        opacity: 0.85;
        cursor: progress;
      }
      .spin {
        display: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #ffffff;
        animation: rot 0.7s linear infinite;
      }
      @keyframes rot {
        to {
          transform: rotate(360deg);
        }
      }
      .btn.loading .spin {
        display: block;
      }
      .btn.loading .lb,
      .btn.loading svg {
        display: none;
      }

      .msg {
        display: none;
        margin-top: 14px;
        padding: 12px 15px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 500;
      }
      .msg.error {
        display: block;
        background: var(--err-bg);
        border: 1px solid var(--err-line);
        color: var(--err-text);
      }
      .msg.info {
        display: block;
        background: var(--info-bg);
        border: 1px solid var(--info-line);
        color: var(--info-text);
      }
      .sec {
        margin-top: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
        color: var(--muted);
      }
      .sec svg {
        width: 15px;
        height: 15px;
        color: var(--ok);
      }

      /* ================================================================
     MODE LAPTOP / DESKTOP : satu layar penuh, tanpa scroll
     (hanya aktif bila lebar > 1000px dan tinggi layar >= 540px)
     ================================================================ */
      @media (min-width: 1001px) and (min-height: 540px) {
        html,
        body {
          height: 100%;
        }
        body {
          height: 100vh;
          height: 100dvh;
          min-height: 0;
          overflow: hidden;
          grid-template-rows: minmax(0, 1fr);
          padding: clamp(12px, 2.4vh, 28px) clamp(16px, 2.4vw, 32px);
        }

        /* --- kolom kiri --- */
        .stage {
          height: 100%;
          min-height: 0;
          padding: 0 0 0 clamp(4px, 1.5vw, 20px);
        }
        .logo {
          width: clamp(38px, 5.6vh, 46px);
          height: clamp(38px, 5.6vh, 46px);
          border-radius: 13px;
        }
        .brand b {
          font-size: clamp(17px, 2.5vh, 20px);
        }

        .headline {
          margin-top: clamp(10px, 2.6vh, 36px);
        }
        .headline h1 {
          font-size: clamp(26px, min(4vw, 5.6vh), 54px);
          margin: clamp(6px, 1.2vh, 12px) 0 clamp(6px, 1.2vh, 12px);
        }
        .headline p {
          font-size: clamp(13px, 1.9vh, 15px);
          line-height: 1.55;
        }

        /* area animasi mengisi sisa ruang; svg menyesuaikan diri */
        .flow-wrap {
          flex: 1 1 0;
          min-height: 0;
          margin-top: 0;
          display: block;
        }
        svg.flow {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          max-height: none;
        }

        .detail {
          padding: clamp(10px, 1.8vh, 18px) clamp(16px, 1.6vw, 22px);
          gap: 16px;
          border-radius: 20px;
        }
        .badge {
          width: clamp(40px, 6vh, 54px);
          height: clamp(40px, 6vh, 54px);
          font-size: clamp(16px, 2.4vh, 20px);
          border-radius: 14px;
        }
        .detail h3 {
          font-size: clamp(15px, 2.1vh, 17px);
          margin-bottom: 2px;
        }
        .detail p {
          font-size: clamp(12px, 1.7vh, 13.5px);
          line-height: 1.45;
        }
        .copy {
          margin-top: clamp(8px, 1.4vh, 16px);
          font-size: 11.5px;
        }

        /* --- kartu login --- */
        .panel {
          min-height: 0;
        }
        .card {
          max-height: 100%;
          overflow-y: auto;
          scrollbar-width: none;
          padding: clamp(18px, 3.4vh, 38px) clamp(24px, 2.6vw, 36px) clamp(14px, 2.4vh, 28px);
          border-radius: 28px;
        }
        .card::-webkit-scrollbar {
          display: none;
        }
        .card .top {
          margin-bottom: clamp(10px, 2.2vh, 26px);
        }
        .card h2 {
          font-size: clamp(23px, 3.6vh, 30px);
        }
        .card .sub {
          font-size: clamp(13px, 1.8vh, 14px);
          margin: 4px 0 clamp(12px, 2.4vh, 26px);
        }
        .field {
          margin-bottom: clamp(9px, 1.8vh, 16px);
        }
        .field label {
          margin-bottom: clamp(5px, 0.9vh, 8px);
        }
        .box {
          height: clamp(42px, 6.2vh, 54px);
          border-radius: 14px;
        }
        .row {
          margin: 2px 0 clamp(12px, 2.2vh, 22px);
        }
        .btn {
          height: clamp(46px, 6.6vh, 58px);
          border-radius: 15px;
        }
        .msg {
          margin-top: 10px;
          padding: 10px 14px;
        }
        .sec {
          margin-top: clamp(10px, 2vh, 22px);
        }
      }

      /* layar laptop pendek (mis. 1366x600-700 atau jendela browser dengan toolbar) */
      @media (min-width: 1001px) and (min-height: 540px) and (max-height: 700px) {
        .headline p {
          /* display: none; */
        }
        .copy {
          display: none;
        }
        .tag {
          font-size: 11px;
        }
      }

      /* ========= responsif (tablet/HP: boleh scroll) ========= */
      @media (max-width: 1000px) {
        body {
          grid-template-columns: 1fr;
        }
        .stage {
          display: none;
        }
        .panel {
          justify-content: center;
          min-height: calc(100vh - 32px);
        }
        .card {
          max-width: 480px;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        * {
          animation: none !important;
          transition: none !important;
        }
      }

/* Logo resmi yang digunakan oleh halaman SIMAKDA. */
.logo img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  display: block;
}
