*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --putih: #ffffff;
    --hitam: #000000;
    --blue: #1a56db;
    --blue-dark: #1341b0;
    --blue-light: #d5eeff94;
    --blue-soft: #f0f7ff;
    /* --biru: #385d8d; */
    /* --biru: #669dc1; */
    --biru: #035f9c;
    --biru-dark: #006bb2;
    /* --biru: #5692ba; */
    --green: #1f6d8c;
    --green-soft: #f0f7ff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f0f6ff;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    min-height: 100vh;
    background: #ffffff;
    overflow-y: auto; /* scroll halaman */
    position: relative;
}

/* ── BPS LOGO BACKDROP ── */
.logo-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.logo-backdrop img {
    width: min(70vw, 680px);
    height: auto;
    opacity: 0.08;
    user-select: none;
}

/* ── LAYOUT ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* center dulu */
    padding: 60px 6vw;
}
.content-row {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1100px;
    width: 100%;
    margin-left: clamp(20px, 4vw, 80px); /* geser halus */
}

/* ── BRAND SIDE (left) ── */
.brand-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    animation: fadeUp 0.65s 0.12s ease both;
}

.brand-logo-row {
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand-logo-row img {
    height: 88px;
    width: auto;
    filter: drop-shadow(0 6px 20px rgba(0, 87, 183, 0.16));
}

.nav-logo-title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    color: var(--biru);
    line-height: 1.2;
    transition: color 0.3s;
}

.brand-name-block .nav-logo-title {
    font-size: 17px;
    color: var(--biru);
}
.brand-name-block .nav-logo-title:first-child {
    font-size: 19px;
    color: var(--biru);
}

.brand-tagline {
    font-size: 13.5px;
    color: #7a90a8;
    line-height: 1.75;
    max-width: 500px;
    border-left: 3px solid var(--biru);
    padding-left: 14px;
}

.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    background: rgba(0, 162, 233, 0.08);
    border: 1px solid rgba(0, 162, 233, 0.2);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--biru);
}

/* ── GLASS CARD (right) ── */
.register-card {
    width: 100%;
    max-width: 440px; /* lebih fleksibel dari flex */

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;

    box-shadow:
        0 10px 40px rgba(0, 87, 183, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    padding: 36px 32px;
}
/* thin scrollbar */
.register-card::-webkit-scrollbar {
    width: 4px;
}
.register-card::-webkit-scrollbar-track {
    background: transparent;
}
.register-card::-webkit-scrollbar-thumb {
    background: rgba(0, 162, 233, 0.25);
    border-radius: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.card-logo img {
    height: 38px;
    width: auto;
}

.reg-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--biru);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.reg-sub {
    font-size: 13px;
    color: #8fa0b4;
    margin-bottom: 22px;
}

/* Flash errors */
.flash-errors {
    background: rgba(254, 242, 242, 0.85);
    border: 1px solid #fecaca;
    border-radius: 11px;
    padding: 10px 13px;
    margin-bottom: 16px;
}
.flash-errors p {
    font-size: 12px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 14px;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid #dce5ef;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b;
    font-family: "Plus Jakarta Sans", sans-serif;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}
.form-input::placeholder {
    color: #b8c6d4;
}
.form-input:focus {
    border-color: var(--biru);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 3px rgba(0, 162, 233, 0.12);
}
.form-input.has-error {
    border-color: #f87171;
    background: rgba(255, 245, 245, 0.8);
}

.input-wrap {
    position: relative;
}
.input-wrap .form-input {
    padding-right: 42px;
}
.toggle-pwd {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9daebf;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.toggle-pwd:hover {
    color: #0057b7;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #0057b7 0%, #00a2e9 100%);
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.025em;
    padding: 13px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 0 4px 18px rgba(0, 87, 183, 0.28);
    transition:
        opacity 0.18s,
        transform 0.12s,
        box-shadow 0.18s;
}
.btn-submit:hover {
    opacity: 0.91;
    box-shadow: 0 6px 22px rgba(0, 87, 183, 0.34);
}
.btn-submit:active {
    transform: scale(0.98);
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}
.divider hr {
    flex: 1;
    border: none;
    border-top: 1.5px solid rgba(210, 220, 235, 0.8);
}
.divider span {
    font-size: 11px;
    color: #b0bec9;
    font-weight: 600;
    white-space: nowrap;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid #dce5ef;
    border-radius: 12px;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    font-family: "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}
.btn-google:hover {
    background: rgba(255, 255, 255, 0.97);
    border-color: #c2cfe0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-text {
    text-align: center;
    font-size: 12.5px;
    color: #8fa0b4;
    margin-top: 18px;
}
.login-text a {
    font-weight: 800;
    color: #0057b7;
    text-decoration: none;
}
.login-text a:hover {
    color: #00a2e9;
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
    .page-wrapper {
        justify-content: center;
        padding: 32px 20px;
    }
    .content-row {
        flex-direction: column-reverse;
        gap: 32px;
        align-items: center;
    }
    .register-card {
        flex: none;
        width: 100%;
        max-width: 420px;
        max-height: none;
    }
    .brand-side {
        display: none;
    }
    .brand-logo-row {
        justify-content: center;
    }
    .brand-name-block .nav-logo-title {
        text-align: center;
    }
    .brand-chips {
        justify-content: center;
    }
    .brand-tagline {
        max-width: 360px;
    }
}
