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

:root {
    --p: #1E3A8A;
    --p-dk: #0F1E4D;
    --p-lt: #EFF6FF;
    --p-mid: #1E40AF;
    --acc: #F59E0B;
    --acc-dk: #D97706;
    --neutral: #64748B;
    --dark: #0F172A;
    --page: #F8FAFC;
    --err: #EF4444;
    --sd: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    --sm: 0 4px 16px rgba(30, 58, 138, 0.1);
    --lg: 0 12px 40px rgba(15, 30, 77, 0.16);
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
    color: #0F172A;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background glow decor */
body::before {
    content: "";
    position: fixed;
    top: -150px;
    right: -150px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Animated BIMA Background Vector Container */
.bima-bg-vector-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bima-vector-orbit {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 520px;
    height: 520px;
    opacity: 0.28;
    animation: rotateOrbit 45s linear infinite;
}

.bima-vector-network {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 480px;
    height: 480px;
    opacity: 0.24;
    animation: floatNetwork 9s ease-in-out infinite alternate;
}

.bima-vector-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    opacity: 0.20;
}

.pulse-node {
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatNetwork {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-18px) scale(1.05);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.96);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.06);
    }
}

.onboarding-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    margin: auto;
    animation: fadeInUp 0.5s ease-out both;
}

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

.onboarding-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.10), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.onboarding-header {
    background: #ffffff;
    padding: 36px 32px 10px;
    text-align: center;
    color: #0F172A;
    position: relative;
    border-bottom: none;
}

.onboarding-header::after {
    display: none;
}

.onboarding-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.onboarding-logo-wrap img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.onboarding-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0F1E4D;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.onboarding-sub {
    font-size: 12.5px;
    color: #64748B;
    font-weight: 500;
}

.onboarding-body {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 32px 32px 36px;
}

/* Nav back link */
.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--p);
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.nav-back-link:hover {
    transform: translateX(-3px);
    color: var(--p-dk);
}

/* Form controls */
.field {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}

.field-label span {
    color: var(--err);
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    transition: color 0.2s ease;
}

.field-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border-radius: 14px;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    outline: none;
    transition: all 0.2s ease;
}

.field-input:focus {
    border-color: var(--p);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.field-input:focus ~ .field-icon,
.field-wrap:focus-within .field-icon {
    color: var(--p);
}

.field-input.error {
    border-color: var(--err);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
}

.pw-toggle:hover {
    color: var(--p);
}

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.check-label input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--p);
    cursor: pointer;
}

.forgot-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--p);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.forgot-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1E3A8A 0%, #0F1E4D 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25), 0 4px 6px -2px rgba(30, 58, 138, 0.1);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(30, 58, 138, 0.35), 0 6px 10px -2px rgba(30, 58, 138, 0.15);
}

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

.form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
    font-size: 12.5px;
    color: #64748B;
}

.form-footer a {
    font-weight: 700;
    color: var(--p);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alert Notification Box */
.alert-box {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.alert-box.show {
    display: flex;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}
