/* ==========================================================
   register.php (nanti juga login.php) - prefiks "au-".
   Simpan sebagai assets/css/auth.css
   ========================================================== */
.au {
    --au-bg: #060b15;
    --au-card: #0d1526;
    --au-card2: #121c33;
    --au-line: rgba(255, 255, 255, 0.09);
    --au-text: #e8ecf5;
    --au-muted: #8f9ab0;
    --au-gold-1: #ffd96a;
    --au-gold-2: #e8b53a;
    --au-gold-3: #b9831a;
    --au-ink: #3a2603;
    --au-blue: #3b82f6;
    --au-red: #ef4444;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 44px 36px;
    color: var(--au-text);
    background:
        radial-gradient(620px 360px at 8% 0%, rgba(232, 181, 58, .16), transparent 70%),
        radial-gradient(640px 420px at 100% 100%, rgba(59, 130, 246, .18), transparent 70%),
        var(--au-bg);
}
.au *, .au *::before, .au *::after { box-sizing: border-box; }

/* halaman mandiri (tanpa header/footer situs) */
.au-page {
    margin: 0;
    background: #060b15;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
/* logo + label sebaris */
.au-brand { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.au-logo { flex: 0 0 auto; display: inline-block; margin: 0; line-height: 0; }
.au-logo img { display: block; height: 40px; width: auto; max-width: 180px; }

/* kisi tipis di latar */
.au::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

/* ---------- blok melayang (sama seperti hero beranda) ---------- */
.au-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}
.au-floater {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 22%;
    opacity: var(--o, .3);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 8px 18px rgba(0, 0, 0, .35);
    transform: rotate(var(--r));
    animation: au-float var(--d) ease-in-out var(--delay, 0s) infinite alternate;
    will-change: transform;
}
.au-floater::after {
    content: "";
    position: absolute;
    inset: 33%;
    border-radius: 26%;
    background: #060b15;
    opacity: .55;
}
.au-floater--1 { --x: 3%;  --y: 6%;  --s: 46px; --r: -12deg; --d: 6s;   --o: .30; --c1: #ffd96a; --c2: #b9831a; }
.au-floater--2 { --x: 30%; --y: 3%;  --s: 30px; --r: 18deg;  --d: 7.5s; --o: .26; --c1: #60a5fa; --c2: #1d4ed8; --delay: -2s; }
.au-floater--3 { --x: 44%; --y: 80%; --s: 38px; --r: 8deg;   --d: 8s;   --o: .22; --c1: #ffd96a; --c2: #b9831a; --delay: -4s; }
.au-floater--4 { --x: 94%; --y: 5%;  --s: 54px; --r: 20deg;  --d: 6.5s; --o: .30; --c1: #60a5fa; --c2: #1d4ed8; --delay: -1s; }
.au-floater--5 { --x: 91%; --y: 84%; --s: 34px; --r: -18deg; --d: 7s;   --o: .28; --c1: #ffd96a; --c2: #b9831a; --delay: -3s; }
.au-floater--6 { --x: 4%;  --y: 88%; --s: 26px; --r: 14deg;  --d: 9s;   --o: .22; --c1: #60a5fa; --c2: #1d4ed8; --delay: -5s; }
.au-floater--7 { --x: 52%; --y: 8%;  --s: 36px; --r: -20deg; --d: 7s;   --o: .24; --c1: #ffd96a; --c2: #b9831a; --delay: -6s; }
.au-floater--8 { --x: 66%; --y: 90%; --s: 42px; --r: 12deg;  --d: 8.5s; --o: .26; --c1: #60a5fa; --c2: #1d4ed8; --delay: -1.5s; }
@keyframes au-float {
    from { transform: translateY(0) rotate(var(--r)); }
    to   { transform: translateY(-20px) rotate(calc(var(--r) + 16deg)); }
}

/* ---------- tata letak ---------- */
.au__grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px);
    gap: 48px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

/* ---------- sisi promosi ---------- */
.au-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: var(--au-gold-1); background: rgba(232, 181, 58, .1); border: 1px solid rgba(232, 181, 58, .4);
    border-radius: 999px;
}
.au-pill { min-width: 0; white-space: nowrap; }
@media (max-width: 400px) { .au-pill { padding: 6px 10px; font-size: .68rem; gap: 6px; } .au-logo img { height: 34px; } }
.au-pill i {
    flex: 0 0 auto;
    width: 8px; height: 8px; border-radius: 50%; background: var(--au-gold-1);
    box-shadow: 0 0 0 0 rgba(255, 217, 106, .6); animation: au-pulse 2s infinite;
}
@keyframes au-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 217, 106, .55); }
    70% { box-shadow: 0 0 0 9px rgba(255, 217, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 217, 106, 0); }
}
.au-promo__title {
    margin: 18px 0 14px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.15; color: #fff;
}
.au-promo__title span {
    background: linear-gradient(90deg, var(--au-gold-1), var(--au-gold-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.au-promo__sub { margin: 0 0 26px; max-width: 480px; font-size: 1rem; line-height: 1.7; color: var(--au-muted); }

.au-perks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.au-perks li {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; max-width: 480px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--au-line); border-radius: 16px;
    backdrop-filter: blur(4px); transition: transform .2s, border-color .2s;
}
.au-perks li:hover { transform: translateX(4px); border-color: rgba(232, 181, 58, .45); }
.au-perk__ico {
    flex: 0 0 42px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    color: var(--au-ink); background: linear-gradient(135deg, var(--au-gold-1), var(--au-gold-3)); border-radius: 12px;
}
.au-perks strong { display: block; font-size: .95rem; color: #fff; }
.au-perks li div span { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.5; color: var(--au-muted); }

/* ---------- kartu formulir ---------- */
.au-side { min-width: 0; }
.au-card {
    position: relative; padding: 30px 26px; background: rgba(13, 21, 38, .92);
    border: 1px solid rgba(232, 181, 58, .28); border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 6px rgba(232, 181, 58, .04);
    backdrop-filter: blur(6px);
    animation: au-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.au-card::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--au-gold-1), var(--au-gold-3), transparent); border-radius: 0 0 4px 4px;
}
@keyframes au-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.au-h1 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.au-sub { margin: 0 0 20px; font-size: .9rem; line-height: 1.6; color: var(--au-muted); }

.au-alert {
    margin: 0 0 16px; padding: 12px 14px; font-size: .88rem; font-weight: 600; line-height: 1.5;
    border-radius: 12px; border: 1px solid transparent;
}
.au-alert--bad { color: #ffb4ab; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); }

.au-form { display: grid; gap: 16px; }
.au-field { min-width: 0; }
.au-label { display: block; margin: 0 0 7px; font-size: .85rem; font-weight: 700; color: var(--au-text); }
.au-wrap { position: relative; }
.au-ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--au-muted); pointer-events: none; transition: color .15s;
}
.au-input {
    display: block; width: 100%; height: 48px; padding: 0 14px 0 44px; font: inherit; font-size: .95rem;
    color: #fff; background: var(--au-card2); border: 1px solid var(--au-line); border-radius: 12px; outline: 0;
    transition: border-color .15s, box-shadow .15s;
}
.au-input--pw { padding-right: 48px; }
.au-input::placeholder { color: #66728a; }
.au-input:focus { border-color: var(--au-gold-2); box-shadow: 0 0 0 3px rgba(232, 181, 58, .18); }
.au-wrap:focus-within .au-ico { color: var(--au-gold-1); }
.au-field.is-error .au-input { border-color: var(--au-red); }
.au-err { margin: 7px 0 0; font-size: .8rem; font-weight: 600; color: #ff8a80; }

.au-eye {
    position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    padding: 0; color: var(--au-muted); background: none; border: 0; cursor: pointer;
}
.au-eye:hover, .au-eye[aria-pressed="true"] { color: var(--au-gold-1); }

/* kotak centang "Ingat saya" */
.au-check { display: flex; align-items: center; gap: 10px; margin: -2px 0 0; font-size: .86rem; color: var(--au-muted); cursor: pointer; user-select: none; }
.au-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-check__box {
    flex: 0 0 20px; width: 20px; height: 20px; display: inline-block; border: 1px solid rgba(255, 255, 255, .22);
    background: var(--au-card2); border-radius: 6px; transition: background .15s, border-color .15s, box-shadow .15s;
}
.au-check input:checked + .au-check__box {
    border-color: var(--au-gold-2);
    background: var(--au-gold-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a2603' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.au-check input:focus-visible + .au-check__box { box-shadow: 0 0 0 3px rgba(232, 181, 58, .3); }
.au-check:hover { color: var(--au-text); }

.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.au-btn {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 50px; padding: 0 20px; font: inherit; font-size: 1rem; font-weight: 800; color: var(--au-ink); cursor: pointer;
    background: linear-gradient(180deg, var(--au-gold-1), var(--au-gold-2) 55%, var(--au-gold-3));
    border: 0; border-radius: 12px; box-shadow: 0 8px 22px rgba(232, 181, 58, .25);
    transition: transform .15s, filter .15s, box-shadow .15s;
}
.au-btn::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
}
.au-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(232, 181, 58, .35); }
.au-btn:hover::after { left: 130%; transition: left .6s ease; }
.au-btn:active { transform: translateY(0); }
.au-btn svg { transition: transform .15s; }
.au-btn:hover svg { transform: translateX(4px); }

.au-note { margin: 0; font-size: .78rem; line-height: 1.6; text-align: center; color: var(--au-muted); }
.au-note a, .au-switch a { color: var(--au-gold-1); font-weight: 700; text-decoration: none; }
.au-note a:hover, .au-switch a:hover { text-decoration: underline; }
.au-switch { margin: 18px 0 0; font-size: .9rem; text-align: center; color: var(--au-muted); }
.au-home { margin: 16px 0 0; text-align: center; font-size: .85rem; }
.au-home a { color: var(--au-muted); text-decoration: none; }
.au-home a:hover { color: #fff; }

/* ---------- tablet & HP ---------- */
@media (max-width: 900px) {
    .au { padding: 28px 16px; }
    .au__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 520px; }

    /* promosi diringkas: judul + tiga chip */
    .au-promo { text-align: center; }
    .au-brand { justify-content: center; }
    .au-promo__title { margin: 14px 0 8px; font-size: 1.55rem; }
    .au-promo__sub { margin: 0 auto 16px; font-size: .9rem; }
    .au-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .au-perks li { max-width: none; padding: 7px 12px 7px 8px; gap: 8px; border-radius: 999px; }
    .au-perks li:hover { transform: none; }
    .au-perk__ico { flex-basis: 28px; width: 28px; height: 28px; border-radius: 50%; }
    .au-perk__ico svg { width: 15px; height: 15px; }
    .au-perks strong { font-size: .8rem; }
    .au-perks li div span { display: none; }

    /* 5 blok di HP */
    .au-floater--3, .au-floater--7, .au-floater--8 { display: none; }
    .au-floater--1 { --x: 3%;  --y: 2%;  --s: 34px; }
    .au-floater--2 { --x: 46%; --y: 1%;  --s: 24px; }
    .au-floater--4 { --x: 90%; --y: 3%;  --s: 38px; }
    .au-floater--5 { --x: 80%; --y: 16%; --s: 26px; }
    .au-floater--6 { --x: 12%;  --y: 20%; --s: 24px; }
}
@media (max-width: 480px) {
    .au-card { padding: 24px 16px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .au-floater, .au-pill i, .au-card { animation: none; }
    .au-btn::after { display: none; }
}