@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/static/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/static/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Jika Bricolage Grotesque juga disimpan lokal */
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/static/BricolageGrotesque-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --ungu-900: #2B1658;
    --ungu-700: #5B21B6;
    --ungu-600: #6D28D9;
    --ungu-500: #7C3AED;
    --ungu-300: #C4B5FD;
    --bg-kanan: #FAF8FF;
    --teks-muted: #5B5275;
}

* {
    box-sizing: border-box;
}

/* halaman dikunci setinggi layar, tanpa scroll */
html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1F1535;
}

.disp {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
}

.wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    height: 100vh;
    height: 100dvh;
}

/* ===== PANEL KIRI ===== */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(20px, 4vh, 36px) 120px clamp(20px, 4vh, 36px) 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 2vh, 20px);
    background: linear-gradient(150deg, #3B1485 0%, #6D28D9 45%, #A855F7 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.z {
    position: relative;
    z-index: 1;
}

/* ===== BRAND: MISEL ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(25, 6, 60, .35));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.3px;
    padding-bottom: 2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E9DDFF 55%, #C4B5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-tagline {
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

/* area ilustrasi: satu gambar besar di tengah, tanpa elemen yang menimpa */
.art {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-card {
    --r: -3deg;
    transform: rotate(var(--r));
    animation: naik-turun 4.6s ease-in-out infinite;
    background: #fff;
    border-radius: 40px;
    padding: 12px;
    border: 5px solid rgba(255, 255, 255, .28);
    background-clip: padding-box;
    box-shadow: 0 0 0 12px rgba(196, 181, 253, .18), 0 0 70px 16px rgba(167, 139, 250, .55), 0 34px 60px -10px rgba(25, 6, 60, .6);
}

.art-card img {
    display: block;
    width: clamp(190px, min(40vh, 24vw), 380px);
    height: auto;
    border-radius: 28px;
}

/* kalimat singkat sesuai kepanjangan Misel (tanpa badge) */
.misel-line {
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid rgba(255, 255, 255, .55);
    font-size: clamp(12.5px, 1.8vh, 14.5px);
    line-height: 1.6;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    max-width: 440px;
}

/* tiga fitur: deretan pil di bawah teks */
.feats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    --y: -5px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    animation: naik-turun 3.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.chip .dot {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ungu-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* efek naik-turun sederhana */
@keyframes naik-turun {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(var(--y, -9px)) rotate(var(--r, 0deg));
    }
}

@media (prefers-reduced-motion: reduce) {

    .art-card,
    .chip {
        animation: none;
    }
}

.hero h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4.4vh, 36px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.4px;
}

.hero p.desc {
    margin: 0;
    font-size: clamp(13px, 1.9vh, 15px);
    line-height: 1.65;
    opacity: .92;
    max-width: 440px;
}

.wave {
    position: absolute;
    top: 0;
    right: -1px;
    width: 100px;
    height: 100%;
    z-index: 2;
}

/* ===== PANEL KANAN ===== */
.side {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-kanan);
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 410px;
}

.pill {
    display: inline-block;
    background: #EDE5FF;
    color: var(--ungu-700);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: clamp(8px, 1.8vh, 14px);
}

.card h1 {
    margin: 0 0 6px;
    font-size: clamp(25px, 4.2vh, 33px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.4px;
}

.card p.sub {
    margin: 0 0 clamp(14px, 3vh, 24px);
    color: var(--teks-muted);
    font-size: 14px;
    line-height: 1.5;
}

.field {
    margin-bottom: clamp(10px, 2vh, 16px);
}

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.field input {
    width: 100%;
    height: clamp(42px, 6vh, 50px);
    padding: 0 16px 0 44px;
    border: 2px solid #E4DBF7;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-size: 14.5px;
    color: #1F1535;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder {
    color: #8F88A6;
}

.field input:focus {
    border-color: var(--ungu-500);
    box-shadow: 0 0 0 3.5px rgba(124, 58, 237, .18);
}

.field .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ungu-500);
    font-size: 17px;
    pointer-events: none;
}

#password {
    padding-right: 50px;
}

.toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ungu-700);
    font-size: 17px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-box-wrap {
    width: 120px;
    flex-shrink: 0;
}

.captcha-box {
    position: relative;
    height: clamp(42px, 6vh, 50px);
    border-radius: 14px;
    border: 2px solid #E4DBF7;
    background:
        repeating-linear-gradient(115deg, rgba(124, 58, 237, .08) 0 2px, transparent 2px 10px),
        #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 800;
    letter-spacing: 1px;
    user-select: none;
    overflow: hidden;
}

.btn-refresh-captcha {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 2px solid #E4DBF7;
    background: #fff;
    color: var(--ungu-600);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.btn-refresh-captcha:hover {
    background: #F1EBFE;
}

.btn-refresh-captcha.spin i {
    animation: putar .5s linear;
}

@keyframes putar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-masuk {
    width: 100%;
    height: clamp(44px, 6.4vh, 52px);
    margin-top: clamp(14px, 3vh, 22px);
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #6D28D9, #9333EA);
    color: #fff;
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 28px -8px rgba(109, 40, 217, .6);
    transition: transform .12s, box-shadow .12s;
}

.btn-masuk:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -8px rgba(109, 40, 217, .65);
}

.btn-masuk:active {
    transform: translateY(0);
}

/* layar pendek (laptop kecil): rapatkan sedikit lagi */
@media (max-height: 640px) {
    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 9.5px;
        letter-spacing: 1.2px;
    }

    .card p.sub {
        display: none;
    }

    .hero p.desc {
        display: none;
    }
}

/* HP / layar sempit: susun vertikal & scroll dibolehkan */
@media (max-width: 820px) {

    html,
    body {
        height: auto;
        overflow: auto;
    }

    .wrap {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100dvh;
    }

    .hero {
        padding: 28px 24px 52px;
        border-radius: 0 0 48px 48px;
    }

    .brand-tagline {
        white-space: normal;
        max-width: 220px;
        line-height: 1.35;
    }

    .art,
    .feats,
    .misel-line,
    .wave {
        display: none;
    }

    .side {
        padding: 32px 24px 40px;
    }
}