@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

:root {
    --royal: #003087;
    --royal2: #1a4fa8;
    --gold: #f59e0b;
    --gold2: #fbbf24;
    --dark: #0f172a;
    --gray: #6b7280;
    --border: #e2e8f0;
    --off: #f8fafc;
}

body, .login-card, .login-dark .login-card,
.page-wrapper, .container-fluid {
    background: transparent !important;
}

/* ===== Full Page ===== */
.gov-reg-page {
    min-height: 100vh;
    background: var(--off);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ===== Decorative Elements ===== */
.gov-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}
.gov-deco-1 {
    width: 300px; height: 300px;
    background: rgba(0, 48, 135, 0.04);
    top: -80px; right: -80px;
}
.gov-deco-2 {
    width: 200px; height: 200px;
    background: rgba(245, 158, 11, 0.05);
    bottom: -60px; left: -60px;
}
.gov-deco-3 {
    width: 100px; height: 100px;
    border: 3px solid rgba(0, 48, 135, 0.06);
    top: 20%; left: 3%;
}
.gov-deco-4 {
    width: 60px; height: 60px;
    border: 3px solid rgba(245, 158, 11, 0.08);
    bottom: 15%; right: 5%;
}

/* ===== Header Bar ===== */
.gov-reg-header {
    background: linear-gradient(135deg, #001a5e 0%, #003087 50%, #1a4fa8 100%);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.gov-reg-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--royal), var(--gold), var(--royal));
}
.gov-reg-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gov-reg-header-icon {
    width: 42px; height: 42px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gov-reg-header-icon svg {
    width: 22px; height: 22px;
    color: var(--gold2);
}
.gov-reg-header-title {
    color: white;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.gov-reg-header-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 8px;
}
.gov-reg-header-link:hover {
    color: #fff;
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.12);
}

/* ===== Main Card ===== */
.gov-reg-card {
    position: relative;
    z-index: 1;
    max-width: 980px;
    width: 100%;
    margin: 35px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 48, 135, 0.08);
    padding: 40px 45px 30px;
    flex: 1;
}

/* ── Tag ── */
.gov-reg-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--royal);
    margin-bottom: 10px;
}
.gov-reg-tag::before,
.gov-reg-tag::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.gov-reg-title {
    text-align: center;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 6px;
}
.gov-reg-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 32px;
}

/* ── Form ── */
.gov-form-group {
    margin-bottom: 20px;
}
.gov-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.gov-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--dark) !important;
    background: var(--off) !important;
    height: auto !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gov-input:focus {
    outline: none !important;
    border-color: var(--royal) !important;
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.08) !important;
    background: #fff !important;
}
.gov-input::placeholder { color: #94a3b8; }

.gov-select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--dark) !important;
    background: var(--off) !important;
    height: auto !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003087' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gov-select:focus {
    outline: none !important;
    border-color: var(--royal) !important;
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.08) !important;
    background-color: #fff !important;
}

.gov-radio-group {
    display: flex;
    align-items: center;
    gap: 25px;
    height: 100%;
    padding-top: 26px;
}
.gov-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    margin-bottom: 0;
}
.gov-radio-group input[type="radio"],
.gov-radio-group input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--royal);
    cursor: pointer;
}

/* ── Section Divider ── */
.gov-section-divider {
    border: none;
    border-top: 2px solid #eff6ff;
    margin: 30px 0 24px;
    position: relative;
}
.gov-section-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}
.gov-section-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}

/* ── Cloudflare ── */
.gov-cf-box {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 5px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--off);
}
.gov-cf-left { display: flex; align-items: center; gap: 8px; }
.gov-cf-check {
    width: 22px; height: 22px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.gov-cf-text { font-size: 0.82rem; font-weight: 600; color: #374151; }
.gov-cf-logo {
    text-align: right;
    font-size: 9px;
    color: var(--gray);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.gov-cf-logo span { font-size: 0.6rem; font-weight: normal; color: #94a3b8; }

.gov-validation-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 5px;
    padding-left: 5px;
}

/* ── Footer Actions ── */
.gov-reg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 2px solid #eff6ff;
}
.gov-btn-back {
    color: var(--royal);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    transition: all 0.2s;
}
.gov-btn-back:hover {
    border-color: var(--royal);
    background: #eff6ff;
    color: var(--royal);
}
.gov-btn-back svg { width: 16px; height: 16px; }

.gov-btn-daftar {
    background: var(--royal);
    color: white;
    padding: 13px 36px;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0, 48, 135, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.gov-btn-daftar:hover {
    background: #001f5e;
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.4);
    transform: translateY(-1px);
}
.gov-btn-daftar svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
    .gov-reg-header { padding: 15px 20px; }
    .gov-reg-header-title { font-size: 0.95rem; }
    .gov-reg-card { padding: 25px 20px; margin: 20px 15px; border-radius: 16px; }
    .gov-reg-footer { flex-direction: column; gap: 15px; }
}
