/*
 * Halaman masuk SIMAS (`/login`, view auth/login.blade.php).
 *
 * Dimuat SESUDAH css/app.css dan css/landing.css: token warna (--brand, --ink,
 * --ease-out, ...), tombol .lp-btn, .lp-grid/.lp-blob, .lp-rotator, .mock-step
 * dan blok prefers-reduced-motion berasal dari landing.css (body berkelas `lp`).
 * Berkas ini hanya memuat bagian khusus login, berawalan `au-`.
 *
 * Aturan main sama dengan landing:
 * - Status interaktif lewat atribut data-* / kelas is-* yang didefinisikan di
 *   sini, bukan kelas Tailwind yang disisipkan JS.
 * - Jangan menetapkan `display` pada kelas yang juga diberi `hidden lg:block`
 *   (berkas ini menang atas Tailwind karena dimuat belakangan).
 */

/* ---------------------------------------------------------------- Dasar */
.au {
    background: #f6f8fc;
}

.au :focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
}

/* ---------------------------------------------------- Panel kiri (gelap) */
.au-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 2.5rem;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(150deg, #0b1a45 0%, #1e3a8a 42%, #1d4ed8 78%, #0284c7 115%);
    box-shadow: 0 40px 80px -40px rgb(29 78 216 / 0.7);
}

@media (min-width: 1280px) {
    .au-panel {
        padding: 2.25rem 3rem;
    }
}

.au-panel-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.au-panel .lp-grid {
    background-image: linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 45%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 60% 45%, #000 15%, transparent 75%);
}

.au-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    animation: lp-float-blob 20s ease-in-out infinite alternate;
}

.au-glow-a {
    width: 26rem;
    height: 26rem;
    top: -8rem;
    right: -6rem;
    background: rgb(56 189 248 / 0.45);
}

.au-glow-b {
    width: 22rem;
    height: 22rem;
    bottom: -9rem;
    left: -7rem;
    background: rgb(245 179 1 / 0.22);
    animation-delay: -9s;
}

/* Sorotan lembut yang mengikuti kursor (posisi diisi login.js). */
.au-spot {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 40%), rgb(255 255 255 / 0.12), transparent 65%);
    transition: opacity 0.5s;
}

.au-panel[data-pointer="true"] .au-spot {
    opacity: 1;
}

.au-brand img {
    transition: transform 0.6s var(--ease-spring);
}

.au-brand:hover img {
    transform: rotate(-8deg) scale(1.06);
}

.au-kicker {
    padding: 0.35rem 0.8rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    color: rgb(219 234 254 / 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.au-headline {
    max-width: 30rem;
    font-size: clamp(1.6rem, 1.05rem + 1.15vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.au-rotator > span {
    background: linear-gradient(100deg, #7dd3fc 0%, #bae6fd 50%, #fde68a 110%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ------------------------------------------------------------- Showcase */
.au-showcase {
    margin-top: 2.75rem;
}

.au-stage-wrap {
    perspective: 1400px;
}

.au-stage {
    position: relative;
    display: grid;
    height: 18.75rem;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s var(--ease-out);
}

/* Semua adegan menumpuk di satu sel: tinggi panggung tetap saat berganti. */
.au-scene {
    grid-area: 1 / 1;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 14px, 0) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out), filter 0.55s var(--ease-out),
        visibility 0s 0.7s;
}

.au-scene.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: opacity 0.55s var(--ease-out) 0.12s, transform 0.7s var(--ease-out) 0.12s,
        filter 0.55s var(--ease-out) 0.12s, visibility 0s;
}

.au-card {
    color: var(--ink);
    padding: 1.1rem 1.15rem;
    border-radius: 20px;
    background: rgb(255 255 255 / 0.97);
    box-shadow: 0 30px 60px -25px rgb(2 6 23 / 0.55), 0 0 0 6px rgb(255 255 255 / 0.1);
}

.au-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.au-card-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 11px;
}

.au-card-title {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.au-card-sub {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.au-pill {
    flex-shrink: 0;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}

.au-pill-blue { color: var(--brand); background: rgb(37 99 235 / 0.1); }
.au-pill-amber { color: var(--amber); background: rgb(217 119 6 / 0.1); }
.au-pill-green { color: var(--green); background: rgb(5 150 105 / 0.1); }

.au-avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.au-avatar-sm {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.58rem;
}

.au-avatar-blue { color: #1d4ed8; background: #dbeafe; }
.au-avatar-sky { color: #0369a1; background: #e0f2fe; }
.au-avatar-violet { color: #6d28d9; background: #ede9fe; }
.au-avatar-emerald { color: #047857; background: #d1fae5; }
.au-avatar-amber { color: #b45309; background: #fef3c7; }

.au-row-title {
    display: block;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.au-row-sub {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Adegan 1 — Kotak Surat */
.au-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.au-row {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #fff;
}

.au-row-meta {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.au-row-time {
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 600;
}

.au-scene.is-active .au-row {
    animation: au-row-in 0.7s var(--ease-out) both;
    animation-delay: calc(0.25s + var(--i) * 0.12s);
}

.au-scene.is-active .au-row-new {
    animation: au-row-drop 0.8s var(--ease-spring) 0.3s both, au-row-flash 2.4s ease-out 1s both;
}

.au-row-new::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 999px;
    background: var(--brand-500);
    box-shadow: 0 0 0 3px #fff;
}

@keyframes au-row-in {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes au-row-drop {
    from { opacity: 0; transform: translate3d(0, -18px, 0) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes au-row-flash {
    0% { background: var(--brand-50); border-color: rgb(37 99 235 / 0.3); }
    100% { background: #fff; border-color: var(--line-soft); }
}

/* Adegan 2 — Disposisi: cabang "tumbuh" lalu penerima muncul bergiliran */
.au-dispo-from {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.9rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    background: var(--bg-soft);
}

.au-scene.is-active .au-dispo-send {
    animation: au-send 1.2s var(--ease-out) 0.3s both;
}

@keyframes au-send {
    0% { transform: translate3d(-6px, 6px, 0) scale(0.7); opacity: 0; }
    60% { transform: translate3d(3px, -3px, 0) scale(1.1); opacity: 1; }
    100% { transform: none; opacity: 1; }
}

.au-tree {
    position: relative;
    display: grid;
    gap: 0.4rem;
    margin: 0.35rem 0 0 1.6rem;
    padding: 0.35rem 0 0 1.1rem;
}

.au-tree::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: calc(100% - 1.05rem);
    border-radius: 2px;
    background: linear-gradient(#93c5fd, #c4b5fd);
    transform-origin: top;
}

.au-scene.is-active .au-tree::before {
    animation: au-grow-y 0.8s var(--ease-out) 0.35s both;
}

.au-branch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
}

.au-branch::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.1rem;
    width: 1.1rem;
    height: 2px;
    background: #c4b5fd;
    transform-origin: left;
}

.au-scene.is-active .au-branch {
    animation: au-pop 0.6s var(--ease-spring) both;
    animation-delay: calc(0.75s + var(--i) * 0.22s);
}

.au-scene.is-active .au-branch::before {
    animation: au-grow-x 0.4s var(--ease-out) both;
    animation-delay: calc(0.6s + var(--i) * 0.22s);
}

.au-chip {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 7px;
    background: #f1f5f9;
    color: var(--ink-2);
    font-size: 0.6rem;
    font-weight: 700;
}

.au-dispo-foot {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
}

@keyframes au-grow-y {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes au-grow-x {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes au-pop {
    from { opacity: 0; transform: translate3d(-8px, 0, 0) scale(0.94); }
    to { opacity: 1; transform: none; }
}

/* Adegan 3 — Rantai persetujuan (memakai .mock-step dari landing.css) */
.au-percent {
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
}

.au-bar {
    height: 6px;
    margin-top: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.au-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), #34d399);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    transition: transform 0.7s var(--ease-out);
}

.au-steps {
    margin-top: 0.6rem;
    gap: 0;
}

.au-steps .mock-step {
    padding-block: 0.32rem;
}

/* Adegan 4 — Ponsel + verifikasi QR */
.au-access {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 100%;
}

.au-phone {
    position: relative;
    width: 10.5rem;
    height: 17.75rem;
    padding: 0.45rem;
    border-radius: 2rem;
    background: #0f172a;
    box-shadow: 0 30px 60px -25px rgb(2 6 23 / 0.7), inset 0 0 0 1.5px rgb(255 255 255 / 0.12);
    transform: rotate(-4deg);
}

.au-phone-notch {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    z-index: 2;
    width: 3.2rem;
    height: 0.85rem;
    margin-left: -1.6rem;
    border-radius: 999px;
    background: #0f172a;
}

.au-phone-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0.55rem 0.6rem;
    border-radius: 1.6rem;
    background: linear-gradient(180deg, #eff4ff, #fff 45%);
}

.au-phone-status {
    display: flex;
    justify-content: space-between;
    padding: 0 0.35rem;
    color: var(--ink);
    font-size: 0.52rem;
    font-weight: 800;
}

.au-toast {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.45rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px -8px rgb(15 23 42 / 0.3);
}

.au-scene.is-active .au-toast {
    animation: au-toast 0.8s var(--ease-spring) 0.5s both;
}

@keyframes au-toast {
    from { opacity: 0; transform: translate3d(0, -26px, 0) scale(0.9); }
    to { opacity: 1; transform: none; }
}

.au-toast-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-500);
}

.au-skeleton {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0 0.15rem;
}

.au-skeleton span {
    width: var(--w);
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%) 0 0 / 200% 100%;
    animation: au-shimmer 1.8s linear infinite;
}

@keyframes au-shimmer {
    to { background-position: -200% 0; }
}

.au-phone-nav {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding: 0.45rem 0.2rem 0.15rem;
    border-top: 1px solid var(--line-soft);
}

.au-phone-nav i {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 5px;
    background: #cbd5e1;
}

.au-phone-nav i:first-child {
    background: var(--brand-500);
}

.au-verify {
    position: relative;
    z-index: 1;
    width: 11rem;
    margin-left: -1.75rem;
    margin-top: 4.5rem;
    padding: 0.85rem;
    border-radius: 18px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 30px 60px -25px rgb(2 6 23 / 0.6);
}

.au-scene.is-active .au-verify {
    animation: au-row-in 0.8s var(--ease-out) 0.25s both;
}

.au-qr {
    position: relative;
    overflow: hidden;
    width: 5rem;
    height: 5rem;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--ink);
}

.au-qr-scan {
    position: absolute;
    inset: 0 0 auto;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgb(16 185 129 / 0.35));
    border-bottom: 2px solid #10b981;
    animation: au-scan 2.2s ease-in-out infinite;
}

@keyframes au-scan {
    0% { transform: translateY(-100%); }
    55%, 100% { transform: translateY(340%); }
}

.au-verify-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.au-verify-sub {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 500;
}

/* Kartu notifikasi mengambang di sudut panggung */
.au-float {
    position: absolute;
    top: -1.1rem;
    right: -1.25rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 14.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: 16px;
    color: var(--ink);
    background: rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -18px rgb(2 6 23 / 0.55);
    transform: translateZ(50px);
    animation: lp-bob 7s ease-in-out infinite;
}

.au-float-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-500);
}

.au-float-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
}

.au-float.is-swapping .au-float-badge {
    animation: lp-pop 0.5s var(--ease-spring);
}

.au-float-text {
    transition: opacity 0.3s, transform 0.4s var(--ease-out), filter 0.3s;
}

.au-float.is-swapping .au-float-text {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
}

.au-float-title {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.25;
}

.au-float-sub {
    display: block;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 500;
}

/* Tab bergaya "stories": isian garis = sisa waktu slide; habis → slide berikutnya. */
.au-tab {
    display: grid;
    gap: 0.55rem;
    padding: 0.35rem 0.1rem;
    border-radius: 10px;
    color: rgb(191 219 254 / 0.7);
    text-align: left;
    transition: color 0.3s;
}

.au-tab:hover,
.au-tab[aria-selected="true"] {
    color: #fff;
}

.au-tab-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.au-tab-track {
    position: relative;
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
}

.au-tab-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7dd3fc, #fff);
    transform-origin: left;
    transform: scaleX(0);
}

.au-tab[data-done="true"] .au-tab-fill {
    transform: scaleX(1);
    opacity: 0.45;
}

.au-tab[aria-selected="true"] .au-tab-fill {
    opacity: 1;
    animation: au-fill var(--slide-ms, 6500ms) linear both;
    animation-play-state: var(--play, running);
}

/* Tanpa JS / dijeda pengguna / gerak dikurangi: garis aktif penuh, tanpa hitung mundur. */
.no-js .au-tab[aria-selected="true"] .au-tab-fill,
.au-showcase[data-autoplay="off"] .au-tab[aria-selected="true"] .au-tab-fill {
    animation: none;
    transform: scaleX(1);
}

@keyframes au-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.au-pause {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-top: -0.1rem;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 999px;
    color: #fff;
    background: rgb(255 255 255 / 0.08);
    transition: background-color 0.25s, border-color 0.25s;
}

.au-pause:hover {
    background: rgb(255 255 255 / 0.16);
    border-color: rgb(255 255 255 / 0.35);
}

.no-js .au-pause,
.au-icon-play,
.au-pause[aria-pressed="true"] .au-icon-pause {
    display: none;
}

.au-pause[aria-pressed="true"] .au-icon-play {
    display: block;
}

.au-captions {
    display: grid;
    margin-top: 1.1rem;
}

.au-caption {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 8px, 0);
    transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out), visibility 0s 0.55s;
}

.au-caption.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s var(--ease-out) 0.1s, transform 0.55s var(--ease-out) 0.1s, visibility 0s;
}

.au-caption-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.au-caption-text {
    margin-top: 0.3rem;
    max-width: 29rem;
    color: rgb(219 234 254 / 0.8);
    font-size: 0.86rem;
    line-height: 1.6;
}

/* Layar rendah (laptop 768–820px): rapatkan agar tidak terpotong. */
@media (max-height: 840px) {
    .au-showcase { margin-top: 2.1rem; }
    .au-stage { height: 17.5rem; }
    .au-headline { font-size: clamp(1.45rem, 0.95rem + 1vw, 1.85rem); }
    .au-captions { margin-top: 0.8rem; }
    .au-phone { height: 16.5rem; }
}

@media (max-height: 740px) {
    .au-headline { display: none; }
    .au-showcase { margin-top: 0; }
}

/* ------------------------------------------------------ Panel kanan (form) */
.au-main-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(700px 400px at 100% 0%, rgb(14 165 233 / 0.1), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgb(29 78 216 / 0.07), transparent 60%);
}

.au-main-bg .lp-grid {
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.7;
}

.au-main-bg .lp-blob {
    opacity: 0.35;
}

.au-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.4rem;
    padding: 0 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgb(255 255 255 / 0.8);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.au-back svg {
    transition: transform 0.35s var(--ease-out);
}

.au-back:hover {
    color: var(--brand);
    border-color: rgb(29 78 216 / 0.35);
    box-shadow: var(--shadow-md);
}

.au-back:hover svg {
    transform: translateX(-3px);
}

.au-form-card {
    width: 100%;
    max-width: 26.5rem;
    margin: 0 auto;
}

/* Muncul halus saat halaman dibuka */
.js .au-form-card > * {
    animation: au-rise 0.8s var(--ease-out) both;
}

.js .au-form-card > :nth-child(2) { animation-delay: 60ms; }
.js .au-form-card > :nth-child(3) { animation-delay: 120ms; }
.js .au-form-card > :nth-child(n + 4) { animation-delay: 180ms; }

@keyframes au-rise {
    from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

/* Galat dari server: kartu bergetar sekali */
.js .au-form-card.au-shake {
    animation: au-shake 0.55s var(--ease-out) 0.35s;
}

@keyframes au-shake {
    15%, 55% { transform: translateX(-7px); }
    35%, 75% { transform: translateX(6px); }
    90% { transform: translateX(-2px); }
}

.au-greet {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.6rem;
    border: 1px solid rgb(29 78 216 / 0.14);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.75);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.au-greet-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--gold);
}

.au-greet-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: lp-ping 2.2s var(--ease-out) infinite;
}

.au-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1.4rem;
    padding: 0.85rem 1rem;
    border: 1px solid;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.au-alert-error {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.au-alert-success {
    color: #065f46;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.au-alert-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
}

.au-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ink-2);
    font-size: 0.86rem;
    font-weight: 700;
}

.au-control {
    position: relative;
}

.au-control-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    width: 1.1rem;
    height: 1.1rem;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.25s, transform 0.35s var(--ease-spring);
}

/* Spesifisitas setara aturan form Flowbite ([type='text'] dsb.) dan dimuat
   belakangan, jadi properti di bawah menang. */
.au-input {
    display: block;
    width: 100%;
    height: 3.15rem;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s;
    -moz-appearance: textfield;
}

.au-input::-moz-placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.au-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.au-input::-webkit-outer-spin-button,
.au-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.au-input:hover {
    border-color: #c3cfdf;
}

.au-input:focus,
.au-input:focus-visible {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgb(37 99 235 / 0.14), var(--shadow-sm);
}

.au-control:focus-within .au-control-icon {
    color: var(--brand-500);
    transform: translateY(-50%) scale(1.08);
}

.au-input[aria-invalid="true"] {
    border-color: #f87171;
    background: #fffafa;
}

.au-input[aria-invalid="true"]:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgb(239 68 68 / 0.14);
}

.au-input-badge { padding-right: 4.75rem; }
.au-input-action { padding-right: 3rem; }

/* Penanda jenis identitas (Email / NIP) — mengikuti logika AuthController. */
.au-badge {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: opacity 0.25s, transform 0.35s var(--ease-spring), background-color 0.25s, color 0.25s;
    pointer-events: none;
}

.au-badge[data-kind="email"],
.au-badge[data-kind="nip"] {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.au-badge[data-kind="email"] { color: var(--brand); background: var(--brand-50); }
.au-badge[data-kind="nip"] { color: var(--green); background: rgb(5 150 105 / 0.1); }

.au-eye {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 10px;
    color: #64748b;
    transform: translateY(-50%);
    transition: color 0.2s, background-color 0.2s;
}

.au-eye:hover {
    color: var(--brand);
    background: var(--brand-50);
}

.au-eye svg {
    grid-area: 1 / 1;
    transition: opacity 0.2s, transform 0.35s var(--ease-spring);
}

.au-eye-hide,
.au-eye[aria-pressed="true"] .au-eye-show {
    opacity: 0;
    transform: scale(0.6) rotate(-20deg);
}

.au-eye[aria-pressed="true"] .au-eye-hide {
    opacity: 1;
    transform: none;
}

.no-js .au-eye {
    display: none;
}

.au-caps {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 0;
    overflow: hidden;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0;
    transition: height 0.3s var(--ease-out), opacity 0.25s, margin 0.3s var(--ease-out);
}

.au-caps[data-on="true"] {
    height: 1.25rem;
    margin-top: 0.45rem;
    opacity: 1;
}

.au-caps::before {
    content: "⇪";
    font-size: 0.9rem;
}

.au-captcha {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}

.au-sum {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.7rem;
    border: 1px dashed rgb(29 78 216 / 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-50), #f0f9ff);
}

.au-digit {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 2.1rem;
    border-radius: 9px;
    color: var(--brand);
    background: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.au-op {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.au-captcha-ok {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    color: #fff;
    background: var(--green);
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
    transition: opacity 0.2s, transform 0.4s var(--ease-spring);
    pointer-events: none;
}

.au-captcha[data-ok="true"] .au-captcha-ok {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.au-captcha[data-ok="true"] .au-input {
    border-color: rgb(5 150 105 / 0.55);
}

.au-captcha[data-ok="true"] .au-control-icon {
    color: var(--green);
}

.au-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.au-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.au-checkbox-box {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    color: #fff;
    background: #fff;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.au-checkbox-box svg {
    transform: scale(0);
    transition: transform 0.35s var(--ease-spring);
}

.au-remember:hover .au-checkbox-box {
    border-color: var(--brand-500);
}

.au-checkbox:checked + .au-checkbox-box {
    border-color: var(--brand-500);
    background: var(--brand-500);
}

.au-checkbox:checked + .au-checkbox-box svg {
    transform: scale(1);
}

.au-checkbox:focus-visible + .au-checkbox-box {
    box-shadow: 0 0 0 4px rgb(37 99 235 / 0.2);
}

/* Tombol masuk: status memuat setelah submit (mencegah kirim ganda). */
.au-submit[data-loading="true"] {
    pointer-events: none;
}

.au-submit[data-loading="true"] .au-submit-arrow {
    display: none;
}

.au-spinner {
    display: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgb(255 255 255 / 0.35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: au-spin 0.7s linear infinite;
}

.au-submit[data-loading="true"] .au-spinner {
    display: block;
}

@keyframes au-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------- Gerak dikurangi */
@media (prefers-reduced-motion: reduce) {
    .au-stage {
        transform: none !important;
    }

    .au-tab[aria-selected="true"] .au-tab-fill {
        animation: none !important;
        transform: scaleX(1);
    }

    /* Pemutar loading tetap berputar (umpan balik penting), tapi pelan. */
    .au-spinner {
        animation-duration: 1.5s !important;
        animation-iteration-count: infinite !important;
    }
}

